Jump to content

Brutile

Members
  • Posts

    314
  • Joined

  • Last visited

Posts posted by Brutile

  1. I can't pass it directly into the stuff array either.

     

    The errors are:

    1. use of undefined type 'a'

    2. 'worldHeight': undeclared identifier

    3. expected constant expression

     

    Even though everything is declared at compile time.

     

    Alternatively, If anyone knows how to make a class that holds variables that only need to be assigned once, and can be used for all classes. I'm only doing this so I don't need to make multiple instances of the same value.

  2. I think multiple worlds is a good way of doing things, but I still think you shouldn't need to use textures and buffers. There should simply be a way of culling the background of a camera, then rendering the two worlds.

  3. Ok, that makes sense and I got it mostly working, but when I render, it will only show the last world that I rendered. It was rendering the background, which rendered over the top of the first one.

  4. Not sure if there is something already in Leadwerks to do this, but I would like something similar to Unity3D's camera layer system, where you could set an object (like a gun) on a layer that the camera could cull. You could then setup two cameras, one that renders the environment, and another that just rendered the gun. This would be helpful in stopping weapons passing through walls, and would also allow higher FOV without making the gun look stretched and horrible.

    • Upvote 1
  5. Is it possible to create geometry in a script at runtime?

    I'm looking to convert a voxel engine (Minecraft terrain) I made in Unity3d to Leadwerks,

    but I don't know what can and can't be done in Lua.

    I need to be able to create a mesh using polygons (not just creating cubes).

    Can this be done? and if so, how?

×
×
  • Create New...