Skip to main content

*.kmz import

4 replies [Last post]
bouillet
Offline
Joined: 2009-03-15

hi,

I see that transparency with import model in kmz is not embeded. Is there a way to change that?

My problem comes from trees: A realistic tree has a lot of polygon, and one arbre lead to Wonderland slowing so I use low polygon trees, and they often use transparency...

Any ideas?

Thanks

bouillet.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Doug Twilleager

Most tree methods actually use Alpha test rather than full blended
transparency. This is both faster
in hardware and is also not order dependent - so you don't have to
sort the polys. We use this in
our new default world which is now in the system. Here is the jME
state we use for our trees - this
is dependent on how your textures are packed, but it illustrates the
usage:

BlendState as = (BlendState)
worldManager
.getRenderManager().createRendererState(RenderState.RS_BLEND);
as.setEnabled(true);
as.setReference(0.5f);
as.setTestFunction(BlendState.TestFunction.GreaterThan);
as.setTestEnabled(true);

Doug.

On Mar 27, 2009, at 3:32 AM, wonderland@javadesktop.org wrote:

> hi,
>
> I see that transparency with import model in kmz is not embeded. Is
> there a way to change that?
>
> My problem comes from trees: A realistic tree has a lot of polygon,
> and one arbre lead to Wonderland slowing so I use low polygon trees,
> and they often use transparency...
>
> Any ideas?
>
> Thanks
>
> bouillet.
> [Message sent by forum member 'bouillet' (bouillet)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339302

npucheta
Offline
Joined: 2008-02-18

I have that problem too. However i remember working with models made in sketchup in jme (no with WL) and i saw the same problem, so may be the problem is in jme itself and not in WL.

paulby
Offline
Joined: 2003-06-13

I don't think the JME collada loader (which is what we use for kmz models) is handling transparency correctly. We will have to fix the loader, but it will be a little while before we get to it, if you would like to dig in and try and figure out whats wrong with the jme loader the help would be greatly appreciated.

Rgds

Paul

Doug Twilleager

Just to add to this - our new default world does not rely on the
collada loader to specify this - we
specify it in a config file, so I would not be surprised if the
collada loader doesn't handle this.

Doug.

On Mar 27, 2009, at 12:33 PM, wonderland@javadesktop.org wrote:

> I don't think the JME collada loader (which is what we use for kmz
> models) is handling transparency correctly. We will have to fix the
> loader, but it will be a little while before we get to it, if you
> would like to dig in and try and figure out whats wrong with the jme
> loader the help would be greatly appreciated.
>
> Rgds
>
> Paul
> [Message sent by forum member 'paulby' (paulby)]
>
> http://forums.java.net/jive/thread.jspa?messageID=339387