Search found 53 matches

by kuxv
Fri Feb 17, 2012 8:00 am
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I aimed at partial terrain loading so data which are not needed (like higher LOD geometry data) are not loaded nor processed. So what you can do is to split your terrain into chunks and let distant terrain chunks load only lowest level which could be just 4 vertices. Together with the use of composi...
by kuxv
Tue Jan 03, 2012 5:21 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hi, @PacoRG: I confirm the bug you found. It is problem with wrong LOD calculation but I hasn't find solution yet. I will report a bug and look on it. Thank you for all the info you posted. @CABAListic: I agree that adding features on last time is bad practise but those last 3 changes very pretty sm...
by kuxv
Thu Dec 01, 2011 6:03 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hi, I commited 3 little changes to my repository: 1) delete texture name generator 2) remove paging debug mode 3) make NameGenerator inherit from UtilityAlloc(that should fix that compilation error al2950 has) Regarding documentation I'm not sure what everything you guys need. I want to add document...
by kuxv
Wed Nov 23, 2011 12:10 am
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hi guys,
sorry for the delay but mail notifications failed me AGAIN... I was really busy with school since my last post but I will look into that next week and finish what is left to do.
by kuxv
Thu Aug 25, 2011 2:43 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hi, thank you for test. Problem is with Ogre::NameGenerator not inheriting from AllocatedObject. I'm using NameGenerator to create names for textures in DefaultTextureAllocator. I didn't want to make it static member so I need to create it in constructor. That is where OGRE_NEW NameGenerator("...") ...
by kuxv
Wed Aug 24, 2011 2:31 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Cool - I'll make that little tweak
Sweet, thank you ;)
If it all goes well, do you mind if I push this back to your fork?
That would be great! Please go ahead. Do you need anything to do for that from my side?
by kuxv
Wed Aug 24, 2011 1:22 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Yes that is a good idea. It can save a lot of headaches ;)
by kuxv
Wed Aug 24, 2011 12:49 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I think what you see now is correct behavior. New LODs are not loaded because you don't have "Auto LOD" turned on. That is what makes "automatic" LOD load/unload. If you have it turned off you can use manual LOD load method using Page Up/Page Down to increase/decrease LOD. I'm working on wiki update...
by kuxv
Mon Aug 22, 2011 4:45 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hello. I pushed in another some more changes. Probably most important would be geometry data compression in terrain.dat file. The dat file is not compressed in as a whole now but just height and delta data are. I also moved them to separate chunks for easier seeking. Geometry data are now also saved...
by kuxv
Mon Aug 15, 2011 10:45 am
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I finished TextureAllocator for terrain which takes new texture from resource pool of previously allocated textures instead of creating new one every time it is needed. I see difference in speed of paging when it is used. I'm much more satisfied with it now ;) I made terrain group to use it in same ...
by kuxv
Thu Aug 11, 2011 7:35 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Oh yes that make sense. It actually came to my mind after I posted the reply ;)
by kuxv
Wed Aug 10, 2011 9:47 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Nice see you ;) I also had a problem with subscription to this thread at the beginning but now it is ok. Maybe some bug ;) So I just did some more tests and the biggest problem are the terrain textures as it takes relatively long time to load them at the beginning. So I'm going to try some shared te...
by kuxv
Mon Aug 01, 2011 2:07 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I have some news about my progress on terrain load speed. I did some timing of the code and here are the results: 16ms .. Terrain::prepare() 4ms ... Terrain::readLodData() 1ms ... Terrain::fillLodData() 1ms ... Terrain::createCpuData() 8ms ... Terrain::checkLayers() 5ms ... Terrain::createOrDestroyG...
by kuxv
Fri Jul 29, 2011 11:09 am
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I'm just working on moving prepare stage into background thread as well. I want it to read all data into temp buffers and then just copy them to terrain class. That should eliminate any stalls. But I spent a lot of time testing performance of terrain's separate LOD loading together with paging. It s...
by kuxv
Mon Jul 25, 2011 11:44 am
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

@swq0553: You can render wast terrains using terrain paging components but you have to do preprocessing of terrain heightfield first. You need to create terrain.dat file from your image(or what you use as input). Then you can easily swap terrains in/out. About progress I was just testing new functio...
by kuxv
Thu Jul 14, 2011 6:39 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Yes that sounds possible. I can imagine you add some parameter which would tell autoupdate function to load full detail instead of incremental load.
by kuxv
Thu Jul 14, 2011 4:57 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Paging now works with separate LOD loading ;)
by kuxv
Thu Jul 14, 2011 2:19 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Added mechanism for automatic LOD level loading. There is abstract class TerrainAutoUpdateLod with only one method void autoUpdateLod(Terrain *terrain, const String& filename, bool synchronous, const Any &data) User creates implementation of it and passes it to Terrain via setAutoUpdateLod(). This t...
by kuxv
Wed Jul 13, 2011 5:43 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I decided to move background loading from TerrainGroup to Terrain. So increaseLodLevel is located in Terrain as well. I implemented automatic LOD loading for terrain as well. It is currently just a function (updateLodByDistance) in Terrain Paging sample and it is driven by distance from QuadTree nod...
by kuxv
Tue Jul 12, 2011 1:45 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I just started working on integration of separate LOD loading into paging component. I decided to create new paging strategy which will work with LOD levels instead of pages. So it will increase/decrease/hold LOD level(s) opposed to pages. For this I will add new TerrainLODPaging and TerrainLODPaged...
by kuxv
Mon Jul 11, 2011 10:45 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hi there. I'm doing my development under 32bit linux using gcc 4.4.5. In the error message there is mentioned line 1443 and if I'm correct that is where interpolation of heightfield data is done(Terrain::getHeightAtPointInterpolated). You can try to comment whole body of that function or just that l...
by kuxv
Mon Jul 11, 2011 12:59 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Hello, I've just made TerrainGroup's LOD loading thread safe. Currently LOD load works in 5 stages: prepare (0) data read (1) data fill/copy (2) CPU vertex data creation (3) GPU vertex data creation (4) Stage 0 is done only when terrain isn't initialized. It reads in terrain info like terrain size, ...
by kuxv
Fri Jul 08, 2011 6:48 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

I just changed LOD load controls from +/- to PAGE UP/PAGE DOWN so they don't collide with terrain editing keys. Terrain editing now allowed only when full LOD is loaded. Added whole terrain class removal/unload when last LOD removed. Only segfault you can get now is when hitting PAGE UP too fast bec...
by kuxv
Thu Jul 07, 2011 2:20 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Yes, that is exactly my intention ;)
by kuxv
Thu Jul 07, 2011 12:50 pm
Forum: Google Summer Of Code
Topic: [GSoC 2011 - Accepted] Terrain paging improvements
Replies: 111
Views: 78959

Re: [GSoC 2011 - Accepted] Terrain paging improvements

Ok I added LOD removal to TerrainGroup. I renamed methods for LOD add/remove as well. It is now increaseLodLevel() and decreaseLodLevel(). I fixed image import function as well. So now you can easily see how that works. Just start for first time and let demo create terrain .dat file. Then start demo...