Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi there,

I made some tiny demos for interactivity with VETScript. Maybe you could give me some feedback...

Sorry for the code, its not documented at all, but i'll fix this in the next days.

Cheers,

Frank

Zip/GZ archivesimple_car_drive.zip (90 KB, 127 downloads)
 
Posts: 48 | Registered: November 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Here is the other one...

Zip/GZ archivecollision_with_boundigspheres.zip (15 KB, 140 downloads)
 
Posts: 48 | Registered: November 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
@ viewpoint:

in the enliven-scene-view you show bounding boxes for each selected object. Is there a property for this, which I could use in VETScript??? Something like "my3dObj.boundingBox"

Or is there any way to get access to the vertex data from the 3d-models in the scene with VETScript??? Like "my3dObj.vertexes[i]"

I hope you'll answer fast, i need this allmost yesterday...

Thanks in advance...

Frank
 
Posts: 48 | Registered: November 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of duncan
Posted Hide Post
Yes you can do that, see attached example. Nice job on the collision detection Wink

Zip/GZ archivedynamic_cube_morph.zip (9 KB, 97 downloads) targeting vertices with vetscript
 
Posts: 381 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks, thats what i needed...

Is there any way to contol the uv-coords too?
 
Posts: 48 | Registered: November 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
hi there,

i try to write a loop that creates bounding objects automatically. The problem is, i don't know how to get the geometry name for a instance object...

Could you help me out?
 
Posts: 48 | Registered: November 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
I think this should work:

var theName = vmp.GetProperty("MTSInstance.someInstance.someGeometry","name","mts_str");
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
I dont get it Confused, I think this is a javascript call? I think I need something else, something like:
var myObjectList = MTSInstances.elements;
var geom="";
for(obj in myObjectList){
  geom = eval("MTSInstances."+obj+".MTSGeometry.name");
  ...
}
for VETScript!!!
 
Posts: 48 | Registered: November 28, 2005Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Admin
Posted Hide Post
Oh sorry. Yes, that was javascript.

In VETSCript, try this:

var theName = MTSInstances.myInstance.myGeometry.name;

This will also work:

var theName = MTSInstance.myInstance.myGeometry.name;
 
Posts: 1188 | Registered: January 08, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of lauramb
Posted Hide Post
Magnificent! I downloaded all three samples and was ecstatic! These further reveal the potential that VET has Internet 3d interactivity. I'm really grateful for your interest, and participation in Viewpoint development. The collision sample is to die for Eek ( can we get a graemlin for hugs and kisses Red Face )
 
Posts: 131 | Location: Las Vegas, NV, USA | Registered: May 14, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Picture of Pixals_Raj
Posted Hide Post
Hi pensator77,
I am very much amazed to see this and I would like to learn this :
http://viewpoint.infopop.cc/eve/forums/a/ga/ul/57610716...h_boundigspheres.zip

Can you please provide me the .pvp(Enliven Pro) source file and obligue.

Thanks,

Raj
 
Posts: 7 | Registered: November 01, 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community