Jump to content

wayneg

Members
  • Posts

    115
  • Joined

  • Last visited

Posts posted by wayneg

  1. Most of the comments seem dated at this point, and some issues relate quality of assets and how they are used. One must factor in the design decisions in whatever this guy was looking at.

     

    I'd agree popping is an issue but can be mitigated with settings, not a big issue for me.

     

    I still have issues with terrain self casting shadows when using large terrain features, so I'd agree with the following:

    I also found the shadows to be very buggy, disappearing at close distances when the camera faces certain directions.

     

    LE3 is a fantastic SDK, and If there was a better product out there I'd be using it.

  2. Hi Michael,

    I love your work man, good stuff.

     

    I prefer to use FBX format because of support for sub-meshes, and big time support from Autodesk.

    I've used FBX 2012.1 converter and viewer and FBX2GMF tool and with great success, and only had two issues. One dealing with scale (large meshes), and two x or y axsis rotated 90 degrees. Both which I can deal with, so I'm ok.

     

    I've included a link to new FBX stuff that may help, or try the 2012 links in my post.

    My suggestion is to use the FBX converter to create your FBX file, it can import different formats, and export your FBX ascii file.

     

    Perhaps import fbx2009 format using fbx2012 converter, then export that to fbx for conversion, just a thought.

     

    I'll take a look if you like, let me know if I can help.

     

    http://www.leadwerks...2-fbx-exporter/

  3. Maybe I'm not doing this right ?

     

    I have Visual Studio 2008 Professional Installed.

    I downloaded VB2010 Express.

    Ran LEbuilder and it created the project and auto launched 2008, ended that.

    Went to the project folder and opened leproject1.vbproj witn vb2010, it then wants to do a conversion, afterwords list the following errors:

     

    Warning 1 The parent file, 'app.myapp', for file 'app\Application.Designer.vb' cannot be found in the project file. leproject1

    Warning 2 A custom tool 'MyApplicationCodeGenerator' is associated with file 'app\Application.myapp', but the output of the custom tool was not found in the project. You may try re-running the custom tool by right-clicking on the file in the Solution Explorer and choosing Run Custom Tool.

    Error 3 'Sub Main' was not found in 'leproject1.leproject1'. leproject1

    Error 4 Identifier expected. C:\leproject1\leproject1.vb 3 8 leproject1

     

    Imports LeadwerksEngine
    
    Module @(wayne)
    
       Sub UpdateCallback(ByVal ent As TEntity)
           LE.TurnEntity(ent, New TVec3(LE.AppSpeed() * 0.5F))
       End Sub
    
       Sub ErrOut(ByVal message As String)
           Console.WriteLine(message)
       End Sub
    
       Sub Main()
    
           Dim ScreenWidth As Integer = 800
           Dim ScreenHeight As Integer = 800
           Dim MediaDir As String = "C:/Program Files/Leadwerks Engine SDK"
           Dim AppTitle As String = "leproject1"
    
           ' Initialize
           LE.Initialize()
           LE.SetAppTitle(AppTitle)
           LE.RegisterAbstractPath(MediaDir)
    
           ' Set graphics mode        
           If LE.Graphics(ScreenWidth, ScreenHeight) = 0 Then
               ErrOut("Failed to set graphics mode.")
               Return
           End If
    
    
           ' Create framework object and set it to a global object so other scripts can access it
           Dim fw As LeadwerksEngine.TFramework = LE.CreateFramework()
           If fw.IsValid = False Then
               ErrOut("Failed to initialize engine.")
               Return
           End If
    
           ' Set Lua framework object        
           LE.SetGlobalObject("fw", fw.Handle)
    
           ' Set Lua framework variable        
           Dim lua As Object = LE.GetLuaState()
           LE.lua_pushobject(lua, fw.Handle)
           LE.lua_setglobal(lua, "fw")
           LE.lua_pop(lua, 1)
    
           ' Get framework main camera        
           Dim camera As LeadwerksEngine.TCamera = LE.GetLayerCamera(LE.GetFrameworkLayer(0))
           LE.PositionEntity(camera, New LeadwerksEngine.TVec3(0, 0, -2))
    
           ' Create cube
           Dim material As LeadwerksEngine.TMaterial = LE.LoadMaterial("abstract::cobblestones.mat")
           Dim mesh As LeadwerksEngine.TMesh = LE.CreateCube()
           LE.PaintEntity(mesh, material)
    
           ' Apply Callback
           Dim cb As LE.EntityUpdateWorldCallback = New LE.EntityUpdateWorldCallback(AddressOf UpdateCallback)
           LE.SetEntityCallback(mesh.Entity, cb)
    
           ' Create ground
           Dim ground As LeadwerksEngine.TMesh = LE.CreateCube()
           LE.ScaleEntity(ground, New TVec3(10, 1, 10))
           LE.PositionEntity(ground, New TVec3(0, -2, 0))
           LE.PaintEntity(ground, material)
    
           ' Add some light
           Dim light As TLight = LE.CreateDirectionalLight()
           LE.RotateEntity(light, New TVec3(45, 45, 45))
    
           ' Spin cube until user hits Escape
           While (LE.KeyHit() = False And LE.AppTerminate() = False)
               If LE.AppSuspended() = False Then
    
                   LE.UpdateFramework()
                   LE.RenderFramework()
    
                   LE.DrawText("Visual Basic LE.NET", 0, 20)
                   LE.Flip(0)
    
               End If
           End While
           LE.Terminate()
       End Sub
    
    End Module
    

    post-115-0-73321800-1317253145_thumb.jpg

  4. I'd like to play around with a concept, where one would place a tree on the terrain.

    The tree would spawn a new smaller tree away from the first, after considering some rules.

    Kinda like Conway's version of life but using Leadwerks and trees, or other models.

     

    Be interesting to see the trees to grow, live and die. I'd also want to cap the population so it doesnt get out of control.

    What ideas can you suggest to do this experiment ?

  5. I dug out the lake so it's lower than everything you see. It's a the standard LW water plane, and it worked well for this application. The actual onsite location shows the lake with sloped sides leading upwards, and the lake lined with stone walls with numerous stairs descending into the lake.

     

    it would be neat to see more water effects; fountains, rivers, falls, possibly water volumes for lakes.

    :D

  6. I should also point out that models from google's 3d warehouse can't be used for any commercial projects, or at least that is my understanding. :) Just keep it in mind.

     

    That would be incorrect. 3D Warehouse TOS;Section c states you agree to let others have free use, there are a few limitations, you may not: (i) aggregate Content obtained from Google Services for redistribution, or (ii) use or distribute Content obtained from Google Services in a mapping or geographic application or service. Unless you have Googles permission.

     

    Entire TOS here: http://sketchup.google.com/intl/en/3dwh/tos.html

     

    11. Content license from you

     

    11.1

     

    (a) You retain copyright and any other rights you already hold in Content which you submit, post or display on or through, the Services.

     

    (:) By submitting, posting or displaying the content you give Google a perpetual, sublicensable, irrevocable, worldwide, royalty-free, and non-exclusive license to reproduce, adapt, modify, translate, publish, publicly perform, publicly display and distribute any Content or derivative works thereof which you submit, post or display on or through, the Services.

     

    This license is for the sole purpose of enabling Google to display, distribute and promote the Services and may be revoked for certain Services as defined in the Additional Terms of those Services.

    © By publicly posting or displaying the content you give other end users of the Services a perpetual, sublicensable, irrevocable, worldwide, royalty-free, and non-exclusive license to reproduce, adapt, modify, translate, publish, publicly perform, publicly display and distribute (subject to the restrictions set forth in Sections 11.4 and 20.3 of these Terms) any Content or derivative works thereof which you publicly post or display on or through the Services.

    11.2 You agree that this license includes a right for Google to make such Content available to other companies, organizations or individuals with whom Google has relationships for the provision of syndicated services, and to use such Content in connection with the provision of those services.

     

    11.3 You retain the right to: (a) make content that you upload to 3D Warehouse using Google SketchUp or third party services available under different license terms, and (:) stop distributing such Content through 3D Warehouse at any time; provided, however that any such election will not serve to withdraw the license granted under these Terms. In order to stop distributing such Content through 3D Warehouse, you must terminate these Terms as set forth in Section 13, or utilize the content removal function provided within the service, in which case the content removal will be effective within two (2) days.

     

    11.4 Notwithstanding anything to the contrary, without Google’s prior authorization, you may not: (i) aggregate Content obtained from Google Services for redistribution, or (ii) use or distribute Content obtained from Google Services in a mapping or geographic application or service.

     

    11.5 You understand that Google, in performing the required technical steps to provide the Services to our users, may (a) transmit or distribute your Content over various public networks and in various media; and (B) make such changes to your Content as are necessary to conform and adapt that Content to the technical requirements of connecting networks, devices, services or media. You agree that this license shall permit Google to take these actions.

     

    11.6 You confirm and warrant to Google that you have all the rights, power and authority necessary to grant the above license.

  7. Hi everyone, don't know if any of you have tried this wonderful program, but it can be found here:

    Autodesk FBX converter

     

    This is first cut, so there maybe issue with having to rotate x-axis 90 degrees to use with leadwerks,

    not sure best way to correct that yet (myself I use lua to rotate)

     

    Why is this tool so good?

    One reason, it supports sub-meshes !!

     

    I love to use Google SketchUp.

    I create my model texture it, use groups or components and name them.

    I set the axis of each component as needed, and then export the file as 3d model.

    This produces the KMZ file, I then change the extension of KMZ to ZIP and extract.

     

    After extraction I use FBX converter: DAE ==> FBX (ascii)

    Then use Leadwerks tools: FBX ==> GMF

     

    FBX Converter

    Transfer files from one file format to another more quickly and easily with the Autodesk® FBX® Converter asset exchange technology. This utility enables you to convert OBJ, DXF™, DAE, and 3DS files to or from multiple versions of the FBX format. New tools are now available with the FBX Converter 2012.1. You can view FBX animation files in real time with the FBX Viewer, explore and compare FBX file contents with the FBX Explorer, and manage animation takes with the FBX Take Manager.

     

    Watch a Video Overview of New Tools in FBX Converter 2012.1

     

    Windows

    FBX 2012.1 Converter for Windows (exe - 32684Kb)

    FBX 2012.1 Converter for Windows 64-bit (exe - 33154Kb)

    Mac *

    FBX 2012.1 Converter for Mac (tgz - 33927Kb)

  8. Thank you Macklebee for pointing out UU3D limitations when exporting GMF, because that has lead to a solution !!

     

    Testing new submeshes and goodies coming out of Sketchup, Deled, Hexagon...

     

    The 3D warehouse is mine now!

  9. I mean like make some Print or Notify so that you can see if it actually finds the objects. Like Notify("Blades not found!").

     

    That was the purpose of the cube, but yeah, I can add that check at the top.

    I must confess I added a notify to the update section and that was a really bad idea since it notified me every frame!! doh! lo l :)

×
×
  • Create New...