About Store Forum Documentation Contact



Post Reply 
Issues with Area.grass_objs and Area.embed_objs
Author Message
Ozmodian Offline
Member

Post: #1
Issues with Area.grass_objs and Area.embed_objs
Hi All,

I am having an issue with Area.grass_objs and Area.embed_objs in that their .elms() function always returns zero. The world renders all the grass and embedded objects correctly, it is just that those memc's always return zero elms.

I suspect it may be a 2.0 issue because Forum user Fex sent me some code he uses for 1.0 and says it works fine for him but when I try 2.0, it does not work at all.

As per usual, i have attached my source code and a video showing the issue. I just modified the code of tutorial 14 - Game Basics - 02 - World. I first added some simple grass to the Sample world.





Attached File(s)
.txt  Sample.txt (Size: 9.91 KB / Downloads: 6)
05-09-2013 06:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Issues with Area.grass_objs and Area.embed_objs
Hello!

In 2.0 it works differently,
inside area load:
1. all objects are loaded into _objs
2. those of ACCESS_TERRAIN are copied into _terrain_objs
3. those of ACCESS_GRASS are copied into _foliage_objs
05-12-2013 04:48 PM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #3
RE: Issues with Area.grass_objs and Area.embed_objs
Hi Esenthel,

Thanks for letting me know. I knew I was not crazy. How do I access _objs, terrain_objs, and _foliage_objs?
05-12-2013 05:46 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Issues with Area.grass_objs and Area.embed_objs
Hello!

I'll make access to all of those members in next release
05-14-2013 01:12 PM
Find all posts by this user Quote this message in a reply
Ozmodian Offline
Member

Post: #5
RE: Issues with Area.grass_objs and Area.embed_objs
Thanks a lot Esenthel. Your support is always greatly appreciated.
05-14-2013 02:33 PM
Find all posts by this user Quote this message in a reply
Fex Offline
Gold Supporter

Post: #6
RE: Issues with Area.grass_objs and Area.embed_objs
(05-14-2013 01:12 PM)Esenthel Wrote:  Hello!

I'll make access to all of those members in next release

Could you also add a function to return Memc<WaterMesh > _water; while you are at it? I would like to be able to load water areas placed in the world editor into Ineisis worlds without having to change the engine headers. This simple change I think would let me do that I think...
05-21-2013 07:38 PM
Find all posts by this user Quote this message in a reply
Post Reply