reddag / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Multiple Object Selection #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. There is only one scene URL when setting parameters, how can we add multiple 
objects?
2. How to detect mouse event over the object only, not the entire canvas.
3.

What is the expected output? What do you see instead?
I should be able to have multiple objects in the canvas and i should be able to 
detect selection when mouseover each of them

What version of the product are you using? On what operating system?

Please provide any additional information below.
Hi, thank you for the awesome work!!! Love it!

Original issue reported on code.google.com by junhong....@solstice.sg on 10 Aug 2014 at 9:26

GoogleCodeExporter commented 9 years ago
Though there's not an existing function to load models from multiple file 
sources, it can be done by writing code to manipulate the loaders and pass in 
the scene manually. This discussion 
https://code.google.com/p/jsc3d/issues/detail?id=52 provides a examples for how 
to do this.  It should be noted that models from different source can work 
together only if they share the same modele space. Otherwise, the scene will be 
a mess.

Jsc3d provides a series of event handlers that can be overriden to detect 
pointer events to implement user-defined behaviour. I think this discussion 
https://code.google.com/p/jsc3d/issues/detail?id=86 is a good reference 
covering the topic. There are also some examples that demonstrate this 
technique. See http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/house.html and 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/statue.html.

Original comment by Humu2...@gmail.com on 10 Aug 2014 at 4:03