SkyBox and/or Particle Emitter in Java3D

Hello

i was wondering if someone knew a good way to create a SkyBox in Java3d with 4 (bottom and top are solid colors) or 6 textures (all textured)… tried it with a standard Box (j3dutils) but couldn’t texture the inside…

And does anyone know any good resource or implementation of a Particle Emitter for Java3D ?..

any code is welcome…

greets,

Gerard

We did a skybox with a Background group and 6 textured quads.

For particles we have an own system that gets triggered every frame an really moves a set of TransformGroups around or modifies Appearences.
Depends on the particles…

You might want to look at the primitive.GENERATE_NORMALS_INWARD attribute- that should let you texture the inside of your box.

I don’t know of a good j3d particle emmitter but I think there is some particle stuff in the j3d.org code library. I started writing my own a week or two ago and I have to say, it is harder than I thought it would be. My particles just kind of sit there and flicker currently. Lame.

For some reason, my Background isnt showng a cube or sphere…
i even tried the Primitive.GENERATE_NORMALS_INWARD

i do something like:

create background…
set it’s color
set the application bounds

create a branchgroup
create a sphere or cube/box… (normals inward)
set the apperance (for a Box all sids)…
add it to the branch

ste the geometry of the background with the branchgroup

add the background to the world branch…

Boxes can not be seen from the inside not because of the normals but due to culling. But I don’t know the appropriate constants by heart.

And you cannot texture with more than a single texture page where it is hard to set good texture coordinates.

i succeed to make it work with a sphere… phew… but it looks ugly…
i noticed that it doens’t work with a cube… since the face orientation isn’t affected by the inward normals… i could write my own class, inspired by the cube…

but isn’t there a quicker way?

added: created a cube with inverted face orientation… works…