Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Bryan

Pages: [1]
Support / VertexController mesh size
« on: November 03, 2012, 06:37:39 pm »
I've been messing a bit with an editor for somebody and am trying to deform the terrain.

I can get the polygon they clicked on which is fine, but in the VertexController the mesh size is only 1024 (the terrain region is currently 32x32 with 2 triangles per 'tile'). So I was wondering how exactly the getDestinationMesh()
  • applies to the actual mesh.

The array size seems to be 1024 so 1 index per tile, but each tile is made of 2 polygons so how does this work?

When I try to deform the terrain the polygon they clicked on I thought might have been just *2 the index since there are 2 triangles per, but it doesn't seem to be the case and the actual location I change is off from where I am clicking.

Thanks in advance for the help.


Projects / Simple 3D Client
« on: October 15, 2012, 02:00:26 am »
Hi everyone,

I recently started messing with jPCT and just seeing what I could do for fun. I plan on continuing with this slowly and just making it into something, possibly a game. I also have released a few versions of it and below you can find the links to download and use this or even just take a look at. The zip contains all the files you need: source, libs and assets.

  • Basic Camera to fly (WASD + Q/E to go up or down)
  • Basic player movement (Left, Right, Up, Down arrow keys, Space to jump)
  • Very basic terrain/region system
  • Very basic GUI system (Toggle pause menu example with Escape)

Some Extra Keys
  • 'R' Toggles render mode (textured -> texture+wireframe -> wireframe)
  • 'M' Regenerate the terrain
  • 'N' Add a new light (random color and location)
  • 'H' Changes 'sun' color
  • 'L' toggles the 'sun' light
  • 'K' Sets light position randomly on terrain (if not snapped to player)
  • 'J' Snap light to above player
  • 'F1' Toggle mouse grab (so you can use your mouse on your desktop again)
  • 'Escape' Toggles the pause menu

Version 2

Version 1


Thanks to: EgonOlsen and hakan eryargi (TexturePack and GLFont classes)


Bugs / Crash report while just messing around
« on: December 15, 2011, 08:14:02 pm »
Hey I was using one of the examples here (that I typed out line by line and omitted some of the objects and stuff) and then I ended up changing the plane size to be almost double in size. Whenever I start moving around a bit and rotating the camera, it seems to crash and spits out an ACCESS_VIOLATION.

Here is the minimal output, if you need the full log just ask and I can post it.

Loading Texture...textures/grass.jpg
Java version is: 1.6.0_26
-> support for BufferedImage
Version helper for 1.5+ initialized!
-> using BufferedImage
Software renderer (OpenGL mode) initialized
Software renderer disposed
Can't find desired videomode (1024 x 768 x 24) - searching for alternatives
Current mode:1024 x 768 x 32 @60Hz
Software renderer disposed
Driver is: nvd3dumx,nvwgf2umx,nvwgf2umx/null on NVIDIA Corporation / GeForce GTX 460/PCI/SSE2
GL_ARB_texture_env_combine supported and used!
FBO supported and used!
VBO supported and used!
OpenGL renderer initialized (using 4 texture stages)
Adding Lightsource: 0
New WorldProcessor created using 1 thread(s) and granularity of 1!
Checking for triangle strip...
Not a triangle strip at position 1!
Subobject of object 2/object4 compiled using 15000 vertices in 20ms!
Object 2/object4 compiled to 1 subobjects in 31ms!
Creating new world processor buffer for thread main
VBO created for object 'object4'
Compiled 1 VBO!
New WorldProcessor created using 1 thread(s) and granularity of 1!
# A fatal error has been detected by the Java Runtime Environment:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x62981a70, pid=5048, tid=2568
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) Client VM (20.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [nvoglv32.DLL+0x861a70]
# An error report file with more information is saved as:
# C:\Users\Bryan\workspace_temp\Messing Around\hs_err_pid5048.log
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Thanks in advance!

Pages: [1]