Jump to content

Gonan

Members
  • Posts

    185
  • Joined

  • Last visited

Everything posted by Gonan

  1. I have created an erupting volcano map, by adding a particle emitter to the caldera (volcano's crater), in the editor, with Realtime Render option ticked, it displays the blobs of lava flying out all around the volcano. When I try to run it from script, in debug or run, the map loads but the emitter does not display. I thought maybe its been Reset and I need to get it to Play(). I can not find how to reference the objects which show in the Scene tab in the map editor, from Lua script. I don't want to create the emitter, and set its values, within the script. In App.lua i've set up the map to load --Load a map local mapfile = system:GetProperty("map","Maps/Erruption.map") If Map:Load(mapfile,1)==false then return false end // play ParticleEmitter2 which is the last item added on the Scene tab in the map editor. ParticleEmitter2.Play() // gives Error attempt to index global 'PaticleEmitter2' (a nil value) return true end How should I reference that emitter contained in the loaded map using lua code? Ive tried, prefixing the line with self.map., self.world.map. , self.context.map. self.world: and lots of other combos to no avail.
  2. Wow that's a speedy answer, 3 minutes. Thanks Josh.
  3. Will it be possible to use Leadwerks to simulate liquid, or gels, or beings, flowing over a landscape, such as a burst pipe, a leak from a petrol/gas tanker, or a lava flow down the side of a volcano or the eruption at the caldera. I was thinking of particles, having a mass, but also having properties like temperature, viscosity, heat loss, but instead of particles being free roaming, they have an attraction force to their neighbouring surfaces, which could be the ground or other particles, which increases with the viscosity. The could be given an initial velocity, which could be flowing or flying. For instance the lava eruption would initially fly then flow, when it hits the ground, it would transition from flying via splat processing, before starting a flow process, then if the ground disappeared, like over a ledge, there would be a pour transition back to flying. This could be used to simulate dams breaking, rivers overflowing, moving glaciers or avalanches, or even how crowds of people/zombies would behave if they were pushing though a cordon, or lemmings doing what they are most famous for. Once the movement stops, a final phase, which could be ignition, or evaporation, or seepage, or freezing.
×
×
  • Create New...