Jump to content

wayneg

Members
  • Posts

    115
  • Joined

  • Last visited

Posts posted by wayneg

  1. is this the old windmill by wailingmonkey from the early 2.3 days? If so, then the lua script should be for the windmill gmf and the findchild name for the blades is "windmill_blades". If it is some other model, then without seeing the model i can only guess that you do not have the right name for the submesh.

     

    and fyi, the '<>' icon in the reply toolbar is for code... just place your code in between...

     

    I downloaded the windmill off google into sketchup and then setup a group to include the blades and bearings.

    I saved to skp, and then loaded UU3D and changed the bone name to 'blades' and saved to GMF. I confirmed the bone name with leadwerks model viewer.

     

    I probably should of posted the windmill model, so I'll do that later today.

     

    Thanks for quick reply :)

  2. I can turn the mesh using the first findchild, but not the blades, what am I doing wrong?

     

    require("scripts/class")
    
    local class=CreateClass(...)
    
    function class:InitDialog(grid)
    self.super:InitDialog(grid)
    group=grid:AddGroup("Model")
    group:AddProperty("Scale",PROPERTY_VEC3,"","Scale")
    group:Expand(1)
    end
    
    
    function class:CreateObject(model)
    local object=self.super:CreateObject(model)
    local mesh1=CreateCube()
    
    object.mesh=model:FindChild("U3D_STATIC_MESH")
    object.blades=model:FindChild("blades")
    
    object.scale=Vec3(0.05,0.05,0.05)
    object.model:SetKey("scale","0.05,0.05,0.05")
    
    
    function object:Update()
    
    	if object.blades~=nil then
    		object.blades:Turn(Vec3(0,1,0))
    		mesh1:Turn(Vec3(0,1,0))
    	end
    end
    
    function object:SetKey(key,value)
    	if key=="scale" then
    		self.scale=StringToVec3(value)
    		object.model:SetScale(StringToVec3(value))
    
    	else
    		return self.super:SetKey(key,value)
    	end
    	--return 1
    end
    
    function object:GetKey(key,value)
    	if key=="scale" then
    		return self.scale.x..","..self.scale.y..","..self.scale.z
    	else
    		return self.super:GetKey(key,value)
    	end
    	return value
    end
    
    function object:Refresh()
    
    	object.model:SetScale(StringToVec3(self.model:GetKey("scale")))
    
    end
    
    function object:RestoreDefaults()
    
    end
    
    function object:Free(model)
    
    	self.super:Free()
    	mesh1:Free()
    end
    
    object:Refresh()
    
    end
    

  3. Yes, thanks !

     

    I loaded the Editor, pressed Script icon, loaded driver.lua in the script/games folder, and hit run.

    Works great, wanting to experiment now by adding wsad keys, first person camera, and make the machine gun fire.

     

    Thanks for the tip Macklebee

  4. It's the style. That choice of style offers interesting 3d tunneling. The you tube videos show really interesting game play, multi-player, and a persistent world the players can change. The guy is going to make bank on it. It's selling like hot cakes!

     

    It would be interesting to explore the possibilities, perhaps some different geometric shapes would improve the look for some people, but for me it is what it is, and game play, crafting, some simple monsters.. reminds me wolfenstein and we see where it took us.

     

    Obviously just drawing cubes and letting LE do the rest comes to mind first, but are there any clever opportunities using shaders that I might consider.

  5. This is what I see and it says last updated feb 10, not march 5th! At the end of the day where can you look to see the version you currently have ??

    What do you guys see ?

     

     

    Downloads

    Leadwerks Engine SDK

    SDK Installer and Updater

    File Name

    SDK Installer and Updater by Josh

    Submitted

    10 February 2010 - 08:46 AM

    Last Updated

    10 February 2010 - 08:46 AM

    File Type

    (zip - application/zip)

    Screenshot

    Not Available

    File Size

    160.14K (Estimated Download Times)

    Views

    238

    Downloads

    183

     

    wh1sp3r's SDK Installer and Updater

    File Name

    wh1sp3r's SDK Installer and Updater by Josh

    Submitted

    29 November 2009 - 08:48 PM

    Last Updated

    10 February 2010 - 07:15 PM

    File Type

    (zip - application/zip)

    Screenshot

    Not Available

    File Size

    404.1K (Estimated Download Times)

    Views
  6. I'm trying to figure out how to get to the download area for 2.31

    This link:

    http://leadwerks.com/werkspace/index.php?/blog/41/entry-169-leadwerks-engine-sdk-231-released/?

     

    I read the following:

    Leadwerks Engine SDK 2.31 released

    05 MARCH 2010

    LEAVE COMMENT

    Posted by Josh

    Leadwerks Engine SDK 2.31 is now available. A new SDK installer in the download area allows you to download different versions of the SDK.

     

    Q) Where is this and how do I get to it, and how do I know what version I have ?

     

    You must have an activated Leadwerks account to download the new SDK installer.

    I have the updater and it downloaded 2.3

     

    please help..

    thanks

×
×
  • Create New...