GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes 3D on browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "3D on browser" Watch "3D on browser" New topic
Author

3D on browser

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

HI all,

I want to display some 3D boxes inside the big 3D container, that means some small boxes inside the big box. For the same, I explore the <canvas> element from HTML5 spec, but didn't find any helpful information as far as 3D is concern. I also look at the Erics canvas 3D experiment, but I didn't find the straightforward way to map small boxes in big containers X, Y, Z position.

So is there any simple library/script which make it possible to show 3D as per my requirement.

I tried the Java 3D applet, but the main disadvantage is, its slow and not every machine support required 3d hardware.

Any inputs ?

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42046
    
  64
http://processingjs.org/ is a nice library for 2D, and may make a good building block for 3D stuff.


Ping & DNS - my free Android networking tools app
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Thanks Ulf, the library was awesome.
But, it still gives the 2D x, y coordinate system. I think, I need the approach which enable me to display 3D in 2D environment.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Only browser that gives 3D with canvas out of the box is Opera.

If you really want to be doing 3D you should be looking at Flash.

Eric
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Eric Pascarello wrote:Only browser that gives 3D with canvas out of the box is Opera.

You mean, I can find the method as simple as,


Eric Pascarello wrote:If you really want to be doing 3D you should be looking at Flash.

Hmm, I'm seriously considering this option now Anyway, thanks for the help.
 
GeeCON Prague 2014
 
subject: 3D on browser