Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

3D on browser

 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://processingjs.org/ is a nice library for 2D, and may make a good building block for 3D stuff.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic