|
Cobryn Raymaker
Registered User
Join date: 3 Jul 2007
Posts: 6
|
07-03-2007 09:14
Hi, First day here and i love it so far!! I have a few newbie questions about scripting cars and also importing them. I made a model in nendo of the BTTF 2 Delorean and need to know how to import it into 2nd life. 2nd: Is there an easy way to write a script for this so I can drive it on ground and in a "hover mode"? I basically have no idea how to begin writing one for this. If someone has a script or can help me that would be great! Thanks in advance. 
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
07-03-2007 09:16
Here's one (of many ) tutorials on scripting vehicles: http://slhomepage.com/lsl/LindenVehicleTutorial.htm(There are examples at the bottom)
|
|
Cobryn Raymaker
Registered User
Join date: 3 Jul 2007
Posts: 6
|
07-03-2007 09:18
Thanks 
|
|
Cobryn Raymaker
Registered User
Join date: 3 Jul 2007
Posts: 6
|
07-03-2007 09:24
Just looked at it and now i have a headache..  I'm not much of a programmer and dont know by looking at it will doors open ect?
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
07-03-2007 10:43
No, thats just an explanation of one kind of movement that can be done. Vehicle/physical movement is a neat way to do vehicles because you get things like friction, angular momentum, mass effects, etc, built in.
You can also do things with non-physical movement, just setting the position of an object incrementlly based on, for example, the keys the user presses.
But this part was about vehicle movement. To do things like open doors, beep a horn, roll down the windows, is something that has to be scripted seperately for those items.
You might check the scripting library forum for freebies here. Or also some of the for-sale places.
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
07-03-2007 12:30
From: Cobryn Raymaker Hi, First day here and i love it so far!! I have a few newbie questions about scripting cars and also importing them. I made a model in nendo of the BTTF 2 Delorean and need to know how to import it into 2nd life. 2nd: Is there an easy way to write a script for this so I can drive it on ground and in a "hover mode"? I basically have no idea how to begin writing one for this. If someone has a script or can help me that would be great! Thanks in advance.  I looked up Nendo, and i'm sad to say SL currently doesn't have support for uploading 3d models made in 3rd party programs (excluding sculpties). Everything has to be made in world out of primitive shapes (prims).
|
|
Cobryn Raymaker
Registered User
Join date: 3 Jul 2007
Posts: 6
|
07-04-2007 23:04
Well, I messed around with the ingame modeler and it seems a little like nendo.
Sorry for these newbie questions btw but... Last 2 questions about scripts *for now*.
Does anyone have a script for a hover car and can it be easily combined with that of a normal car script so I can choose between the 2?
|
|
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
|
07-05-2007 09:37
You're going to have quite a learning process to go through, but everything you've suggested is doable. In SL you can build a large object like the car out of several small objects (primitives, prims). Each of these can be scripted seperately, but attached to the larger object. So from your description I would: -model the car without doors/windows -script the car (hover, non hover, based on existing car scripts) -model the doors -script them to open -model the windows -script them to open Pretty much each of these is a separate task, none of them trivial! I would suggest starting with an open source free car and just spending time learning scripting from tutorials and always looking back at that car. There is a great tutorial here on the basics of scripting (with some very useful examples): http://www.kan-ed.org/second-life/using-LSL.htmlI think you've bitten off a bit too much to chew right off the bat, but its definitely doable so keep on truckin man you'll get 'er done! 
|
|
Cobryn Raymaker
Registered User
Join date: 3 Jul 2007
Posts: 6
|
07-05-2007 10:25
Thanks for all the help!! I'll keep this updated with my progress. 
|