Jump to content

Search the Community

Showing results for tags 'vegitation'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Tree Materials

    There seems to be some runtime issues with tree materials. There has been a work-around discovered but we would like clarifications on the intended proper use of the materials at runtime. Here is the problem: I have found that editing material parameters does not always work as expected. For example, I wrote some script that essentially, using engine.materials obtained a reference to the “mesh_stem_base” material and traversed the material hierarchy obtaining all children of this material. Directly after the world is loaded, I then set the “animation_stem_radius” and “animation_stem_scale” to 0.0 on all Material objects that are children of “mesh_stem_base”. When I move my Player to where a tree is, the stems are still moving ie the default values for those materials are applied (when the tree is first streamed in). If I then update the “animation_stem_scale” and “animation_stem_radius” to some new value, the stem movement of the tree reflects the new material settings. And if I then reduce the value back to 0.0, the stems stop moving. It appears that any material modifications are only applied when the tree is streamed in and a surface that uses the modified Material is visible? I have subsequently started using engine.render.setAnimationStem and this seems to resolve the problem but I’m concerned that this is a general problem when editing Material parameters on the fly programmatically. Also: Additionally I have found that with certain vegetation, whilst setting engine.render.setAnimationStem and engine.render.setAnimationLeaf to 0, the shadows for the leaves are still moving and the leaves still shimmer like they’re moving, despite the fact that the leaves clearly aren’t moving. I noticed this behaviour on the “vegetation_birch1” tree in particular. Cheers, Dave
×
×
  • Create New...