Jump to content

IvyTechEngineer

Resident
  • Posts

    286
  • Joined

  • Last visited

Everything posted by IvyTechEngineer

  1. Ok, I did what you said but my Z axis is actually what the rotor needs to rotate about.
  2. Thanks, I will try to do what you suggest tomorrow, have class now. I am using the SL Viewer, does it have a ruler? Sorry for the questions but I am still trying to figure stuff out ... I do have the Firestorm viewer on my PC.
  3. That did the trick, thank you! But for some reason I had to enter llTargetOmega(<0,0,0.1> * llGetLocalRot(), TWO_PI, 1.0); default { state_entry() { llTargetOmega(<0,0,0> * llGetLocalRot(), TWO_PI, 1.0); } link_message(integer sender_num, integer num, string str, key id) { if(str=="stop") { llTargetOmega(<0,0,0> * llGetLocalRot(), TWO_PI, 1.0); } if(str=="start") { llTargetOmega(<0,0,0.1> * llGetLocalRot(), TWO_PI, 1.0); } } }
  4. Thanks, I think I have figured out a solution. If move the object to the say X and Z locations as the linkset origin and make sure the control switch has no rotation then the rotor will spin around the y axis as desired using the script that I have.
  5. Hi Fenix, I can get the rotor to spin correctly (around the object's y axis) when it is not linked but when it is linked but when it is linked the object appears to rotate strangely. <0.0, 0.1, 0.0> works fine if unlinked. https://www.ivytechengineering.com/SecondLife/files/armature rotate4a.gif <0.0, 0.1, 0.0> doesn't work if linked. https://www.ivytechengineering.com/SecondLife/files/armature rotate4b.gif Here is the code for the rotor (in the gifs I use a prism or wedge. default { state_entry() { llTargetOmega(<0.0,0.0,0.0>,TWO_PI,1.0); } link_message(integer sender_num, integer num, string str, key id) { if(str=="stop") { llTargetOmega(<0.0,0.0,0.0>,TWO_PI,1.0); } if(str=="start") { llTargetOmega(<0.0,0.1,0.0>,TWO_PI,1.0); } } }
  6. Thanks, yes there is another script on a switch object integer myswitch; default { state_entry() { myswitch=FALSE; llSetText("Light Switch", <1.0, 1.0, 1.0>, 1.0); } touch_start(integer total_number) { if(myswitch==FALSE) { //Turn Light Bulb ON llMessageLinked(LINK_ALL_CHILDREN, 0, "start", NULL_KEY); llSetColor(<0.0, 1.0, 0.0>, ALL_SIDES); myswitch=TRUE; } else { //Turn Light Bulb Off llMessageLinked(LINK_ALL_CHILDREN, 0, "stop", NULL_KEY); llSetColor(<1.0, 0.0, 0.0>, ALL_SIDES); myswitch=FALSE; } } } After watch a the YouTube video I was able to duplicate the script in SL for my objects. I am attempting to turn on and off a rotor on a DC motor with the switch. The only problem seem to be that the rotor is rotating around a different point when it is linked?
  7. Hello I would like to turn "on" and "off" the rotation of an object using a switch. The script of the spinning object is: default { state_entry() { llTargetOmega(<0.0,0.0,0.0>,TWO_PI,1.0); } link_message(integer sender_num, integer num, string str, key id) { if(str=="stop") { llTargetOmega(<0.0,0.0,0.0>,TWO_PI,1.0); } if(str=="start") { llTargetOmega(<0.0,0.1,0.0>,TWO_PI,1.0); } } } And the results show that the object spins around the y axis vs the x axis. If the first term in the llTargetOmega comman is vector axis.
  8. arton Rotaru, this is exactly the stuff I want to learn about. I teach electrical and mechanical engineering and we use Solidworks for CAD and Arduinos for some of our projects. I am new to Blender really and just figuring some stuff our with how to texture objects, lol. I am also new to writing LSL scripts. I do have the Heaton books and have watched a lot of YouTube videos. It has been a struggle because I don't believe there are very many people still active in SL with the have the breath of knowledge needed to do the kind of things you have done. Thanks for your advise. OBTW, I just bought your Useless Box and looked around your SL Marketplace store, nice stuff!
  9. Wow, that is so cool. I would love to study what you have done in more detail.
  10. This is very nice. Did you build this in Blender or in Second Life or somewhere else?
  11. Anyone build wires in SL? I am working on a DC Motor model that I want to connect to a 12V battery and turn on and off the spinning of the motor with a script.
  12. So what software should I use in the future?
  13. Thanks, I am not sure I totally understand how to improve the quality and realism of my coin. I am really a CAD designer with just a very small amount of artistic flare, lol but thanks for your advice.
  14. I do have access to Photoshop and it would work I am sure. Thanks
  15. Thanks, I had thought about doing something like that but was unsure what tools I could use. I would use a CAD program to add some 3D to the image maybe but maybe there is something "free" that I could use. The coin looks nice in SL but of course the lighting is wrong.
  16. Thanks. I am not sure I totally understand what you said. My background is really CAD (Solidworks) and Blender to translate to a DAE file. Not much experience with textures per se. I have used Photoshop and paint.net (free) but still just a hack ... lol
  17. Thanks, I wanted to minimize the cost (i know that is lame) but thought if I could create a single texture that it would be better. When you upload a model the Include Textures can be selected as well and somehow SL knows what texture needs to be uploaded. Maybe that info is embedded in the DAE file?
  18. I have used Blender but am no expert. Textures are something new for me so I watch a lot of YouTube videos. I typically do more CAD work outside of Blender. To create the texture I ultimately used I started with and then moved onto I used Photoshop and paint.net to merge the two sides of the coin and that worked ok. Photoshop was used to crop the images and paint,net was used to merge all the images together into a single image.
  19. Sorry, one more question about uploading models with textures. If I upload a file that should include a texture, can I select the texture or should it have the same file name?
  20. If I have an object, like a coin, that has two sides, can the both the head and tail sides be merged in Blender using uploaded as a single image image in SL?
  21. I am not so much worried about the money, it is really the land impact and the fact that some of the buildings have not been reviewed nor do they respond to my attempts to ask them questions. Also, I was thinking that some of these building could be built in SL or Blender and they might allow more customization. Some of the buildings from other builders include signage which I might need to add if it is not included. In addition, I wanted to do a rough layout of the building before buying them. This would be a great class project for my students maybe.
  22. I am looking into building a small old west town, maybe 6 buildings. The Second Life Marketplace has some builders that have buildings that might work but I am a little unclear about how to evaluate the significance of Land Impact. For example, RE Blueprint Design has a 16x16 building that has a Land Impact of 47. Is this ok? I am a little leery about buying something that has no reviews. I could spend some time and create buildings in SL myself but this may take some time to do. I have attempted to also reach out to some of the builders and only a few respond in SL. (Sent them notecards via IM but I am not sure they are still active SL users.) Suggestions?
  23. I was watching a YouTube video entitled "Second Life: Download Scripts from Script Library" but I don't know if the library was on the National University Island or did Dr Taylor get the scripts from somewhere else. I wonder if Rockcliffe has free scripts available? I think he found or bought some scripts and placed them in what he called the "Teachers Tool Shed". Can't seem to find the island now maybe it is private or has been moved or renamed. )
×
×
  • Create New...