Show Posts
|
|
Pages: [1]
|
|
2
|
Java Game APIs & Engines / Xith3D Forums / Re: Picking order
|
on: 2004-06-30 22:44:20
|
|
Yuri, could you please further explain how to improve picking performance? The way it looks right now, it seems that we will require a lot of pickable objects in the system we are building, so picking performance with a large number of pickable objects is critical.
Thank you, Sergey.
|
|
|
|
|
3
|
Java Game APIs & Engines / Xith3D Forums / Re: Alpha Blended Textures problem
|
on: 2004-06-11 14:15:42
|
|
Fixed it.
Well, it seems that every OpenGL based engine has the same problem, I don't know about Direct X, but the "problem" is related to the depth Z-buffer. To solve the problem I created RenderingAttributes and set setDepthBufferWriteEnable(false) on it, then I enabled sorting on Transparency attributes, and finally I set the View transparency policy to:
view.setTransparencySortingPolicy(View.TRANSPARENCY_SORT_BOUNDING_SPHERE_AND_EYE_RAY_INTERSECTION)
This fixes the problem as long as the polygons don't intersect, and as long as they are not very close to each other. Xith will sort all the polygons in the scene BACK to FRONT, but this sometimes doesn't work as expected. The way around this problem is to create bounding sphere for every transparent geometry and position them along one axis in the required order.
Sergey
|
|
|
|
|
4
|
Java Game APIs & Engines / Xith3D Forums / Alpha Blended Textures problem
|
on: 2004-06-08 21:38:29
|
|
Hello, all
I am trying to get two transparent (alpha channel) objects to overlay each other.
Two objects are created with transparent textures from 32BPP TGA files (24BPP + alpha channel).
When looking through transparent parts of the objects, any solid objects behind it will be visible, but other transparent (alpha-mapped) objects sometimes disappear, depending, apparently, on the angle.
I tried playing around with settings, giving functions different parameters in hopes of fixing the problem, but nothing works. Any suggestions anybody?
Sergey
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|