Author
Topic: Wireframed 3d quad-map (Read 1216 times)

I need to draw a 3d quad-map (30 x 30 x 30 squares where I'm gonna place my markers) but I couldn't find a way to do it with jPCT. It needs to be a wireframe so that the user can see what is in the 3d space, and I need to control its transparency so that it doesn't make visualization of all the markers difficult. Can anyone give me a hand?

That's because you can't do it that way. You can render a world in wire frame, i.e. you could everything you want to render as wire frame in another world instance than the objects that should be solid. However, you'll get diagonal lines, because the objects are made out of triangles, not quads. Maybe faking the wireframes with a transparent texture is the better idea!?

Yeah, faking with texture might work.That gave me another idea. Is it possible to make the texture repeat itself over an Object3D instead of stretching it? I want the user to be able to change the grid size without making the marker places bigger, i.e. increase the grid's size from 30 to 40 5.0f cubes.