3DzzD pre-alpha API release & doc & 3d menu online demo source

Hi,

An online simple menu demo applet made with 3DzzD API still compatible java 1.1 (MS & SUN)
http://dzzd.net/demo/3DzzDAP1.204/

I also release a pre-alpha version that you will find enclosed with that demo source code at :
http://dzzd.net/demo/3DzzDAP1.204/DemoApplet.zip

The current API javadoc can be found there:
http://dzzd.net/demo/3DzzDAP1.204/3DzzDDoc.zip

Because it is a pre-alpha they are still many many bugs so for now I am not really asking for bug report:
some function are documented but inactive other are still undocumented/not visible and usefull as terrain engine and collision detection&response, in other words it is unfinished yet and I am still working on it to provide a full version in the near futur : documented, stable and with all functionalities activated.

Bruno

Nice…

But I found that I was well over another menu item before it became activated…

(PS, how are you doing the font rendering? It seems nice…)

DP

Download the source code, all you need to know about the menu is there, it is a 3ds file with all the text model and a camera well positioned I just load the file MENU.3DS select the good camera and animate and change material parameter when mouse goes over an item.

Bruno

Looks great but as was mentioned above, you need to work on the response times. I’m still getting a 1-3 second delay on menu selection for my slower computer. It’s only about a quarter second on my faster computer, but you have to think about the general user. I’d much rather the framerate was 10% slower if the reactions could become almost instantaneous. Great work on the 3D engine though.

Edit: Small note - it seems as though on certain occasions (one of every 2 or three attempts) the selection will fail indefinately as long as I keep my mouse still. Once I start moving it around it’ll pick up the selection eventually.

Why does IPoint4D in the docs obviously describes an Animator class ???

Thanks, I better understand now what darkprophet was meaning. It is necessary to add a Thred.yield() in at least one event function to let some time for mouse and keyboard inputs on slower computer.

IPoint4D was previously named IAnimator3D ans before ISimpleAnimator3D so its name has changed two times last days.

I am currently choosing name of interface and class so many class/interface & functions have been renamed and will change in near futur, I am still not satisy with many of name, I am open to proposal.

Bruno

EDIT: double post ? sorry

some update of the documentation new alpha release and/or first stable version at end of week with full doc:

http://dzzd.net/demo/3DzzDAP1.204/3DzzDDoc01.zip

Bruno

New 3DzzD API alpha release, doc and demo source code.

Switch between Software and hardware (JOGL) renderer at runtime using the right mouse button

http://dzzd.net/demo/3DzzDAP1.206/

Framerate is limited to 30 fps for both software and hardware renderer
Use right mouse button to switch between software and hardware renderer (open the console to see result), if jogl can not be found nothing will happend when clicking right mouse button.

this demo, its source code, current alpha API and its documentation can be downloaded there : http://dzzd.net/demo/3DzzDAP1.206/APIDzzD.zip

you still need jogl jar and native library installed as explained erlier to use hardware renderer, dont forget to remove those files if you dont want to have trouble running jogl by webstart

know bugs:

software renderer:

  • alpha is disabled
  • some error on zbuffer
  • ambient is hardcoded

hardware render:

  • alpha is disabled
  • skybox is visible
  • if you switch two times from software renderer to hardware textures will be “mixed”.

api:

  • the SolidSphere3D have a hardcoded radius
  • alpha is disabled
  • switching two times from software renderer to hardware “result in mixed texture”.
  • frustrum culling trouble if camera FOV is set greater than 45%.

missing features wich will be available in nest version:

  • Terrain engine is disabled
  • getRendereMesh3D at x,y is disabled
  • getRendereFace3D at x,y is disabled
  • software ambient is hardcoded
    feedbacks about the API are welcome

Bruno

Wow, that’s pretty good for it to be able to switch between hardware and software like that. Though perhaps something like a Function Key would be more appropriate for switching than right mouse clicks (so you can use them for something else). Too bad you can’t load jogl directly off the server though. Unfortunately I don’t have it installed right now, nor do I really want it for the above mentioned reason (had it earlier though). Maybe you could provide at least provide a link on your page for the jogl install files?

Or maybe (just an idea) you could let the user install the jogl files to a specific directory that you would know the location of (could be based off the java home through the system properties) and you could quickly grab the files off the harddrive if available? I’m not sure how easy it would be to do that, I’ve never really tried looking up libraries from an app, but it would avoid the webstart confusion issue.

Oh btw, about right click switching to jogl if installed… it most definately freezes my applet when I right click, tried multiple times. And I’m sad to say the keyboard can still be miserably unresponsive, taking anywhere from 1/10th to a whole 5 seconds to respond. Mouse however seems to react rather quickly, except when I’m moving around using the keyboard, whereupon it tends to easily lock up as well.

Graphics/framerate is still good however and good job getting actual walking in. :slight_smile: Keep up the good work, I’ll try to keep checking back to see how things are going.

I can find any good reason why input keyboard & mouse are so broken :frowning: I need to do further research on that bug. thanks for feedback.

About the righ click : it is only a because this applet is for demonstration purpose, you can download it and look at the source code, as you will see there is nothing simpler than change the right click to another key or anything else.

about JOGL, It is possible to do an installation process by the way you specify but people may encouter problem with other program using JOGL & webstart.

This thread exlplain how to get JOGL running & properly installed : http://www.java-gaming.org/forums/index.php?topic=12401.0

but I am still looking for a good solution that will let the software engine compatible java 1.1 MS+SUN and enable hardware on user request without the need to install any files manually, Ken Russell also told on this thread about a possible solution using JOGLAppletLaucher, I will try it as soon as possible.

Bruno

No need to install jogl anymore !!

http://dzzd.net/demo/3DzzDAP1.206/

API is updated:

http://dzzd.net/demo/3DzzDAP1.206/APIDzzD.zip

Bruno

Are you sure?

Java 1.5.0_06, Firefox 1.5.0.1

Exception in thread "Thread-7" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
	at java.lang.ClassLoader.loadLibrary(Unknown Source)
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at com.sun.opengl.impl.NativeLibLoader$1.run(NativeLibLoader.java:65)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:63)
	at com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(WindowsGLDrawableFactory.java:62)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:106)
	at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:110)
	at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:82)
	at dzzd.J.<init>(Unknown Source)
	at dzzd.DzzD.newRender3D(Unknown Source)
	at dzzd.a.a(Unknown Source)
	at dzzd.a.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

hum… no, not really :frowning:

EDIT: I dont know exacly why, but even when i remove all jogl dll and jar from my computer dellete jvm cache and reboot my computer it is still working… but at least three people encounter the same bugs as you , it is hard to correct this if I cannot reproduce this error. will search and find!

config : windows xp, internet explorer,jvm 1.5.0_02-b09??

I upgrade to new JVM: 1.5.0_06-b05 to see if it is still working and yes???

popup is a little different but it is still working, really dont understand ??!

Ok, I uninstall java and than re-install, remove all dll every where with JOGL*.* about one hour of work and finally demo do not work anymore same bug as others.

To work the native dll must be in java lib directory or windows system directory maybe

Bruno