[GSoC 2012 - Accepted] Improve and Demo the Terrain System
-
- OGRE Team Member
- Posts: 3092
- Joined: Tue Apr 11, 2006 3:58 pm
- Location: TLV, Israel
- x 76
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Can you fill this form and send it to e-mail at the end of the forum - so we can merge your work to the main repo?
Post on this thread after doing it - so I will know that you have.
Post on this thread after doing it - so I will know that you have.
Watch out for my OGRE related tweets here.
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Of courseAssaf Raman wrote:Can you fill this forum and send it to e-mail at the end of the forum - so we can merge your work to the main repo?
Post on this thread after doing it - so I will know that you have.

I'll do it after posting this week's progress report.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Team Member
- Posts: 3092
- Joined: Tue Apr 11, 2006 3:58 pm
- Location: TLV, Israel
- x 76
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
This is the last week of the project, mentor and student - try to finish this project this week and merge it into the trunk if the code it ready for it.
Watch out for my OGRE related tweets here.
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Weekly Progress:
Almost finished the EndlessWorld sample.
Known issues:
The perlin-noise terrain looks unnatural. Need some time to adjust the factors.
Crack when shutdown the SampleBrowser, which must be some destruction problem.
I'll deal with them in one or two days, and then make another screen record to show my work.
I think it will be ready to be merged into trunk at the end of gsoc.
Almost finished the EndlessWorld sample.
Known issues:
The perlin-noise terrain looks unnatural. Need some time to adjust the factors.
Crack when shutdown the SampleBrowser, which must be some destruction problem.
I'll deal with them in one or two days, and then make another screen record to show my work.
I think it will be ready to be merged into trunk at the end of gsoc.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Team Member
- Posts: 3092
- Joined: Tue Apr 11, 2006 3:58 pm
- Location: TLV, Israel
- x 76
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Can you give me a date when the work will be finished and the code merged?xiaoxiangquan wrote: I think it will be ready to be merged into trunk at the end of gsoc.
Watch out for my OGRE related tweets here.
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Before the "Firm Pencils Down" date, August 20.Assaf Raman wrote:Can you give me a date when the work will be finished and the code merged?
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
I was just going over the code and have a question.
In both TerrainLodManager::handleRequest and TerrainLodManager::handleResponse there is this code:
Which is inside a for loop. However, lastTreeStart is signed and treeStart is not. Which causes the vertex data assignment to always happen the first time through the loop. Is this intentional?
In both TerrainLodManager::handleRequest and TerrainLodManager::handleResponse there is this code:
Code: Select all
// skip re-assign
if(lastTreeStart != lodinfo.treeStart)
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Yes, some different LOD levels share the same quad-tree level ranges. For example:masterfalcon wrote:I was just going over the code and have a question.
In both TerrainLodManager::handleRequest and TerrainLodManager::handleResponse there is this code:Which is inside a for loop. However, lastTreeStart is signed and treeStart is not. Which causes the vertex data assignment to always happen the first time through the loop. Is this intentional?Code: Select all
// skip re-assign if(lastTreeStart != lodinfo.treeStart)
LOD 0: need to assign vertex to quadtree[0,2]
LOD 1: need to assign vertex to quadtree[0,2]
LOD 2: need to assign vertex to quadtree[2,4]
LOD 3: need to assign vertex to quadtree[2,4]
...
So if we are loading several LODs, like [LOD0-LOD3], it will be:
Loading LOD3: assign vertex to quadtree[2,4]
Loading LOD2: have been loaded, skip
Loading LOD1: assign vertex to quadtree[0,2]
Loading LOD0: have been loaded, skip
buildLodInfoTable() tells how the ranges are calculated.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
I have finished the EndlessWorld sample, but with a known bug:
If you quit the SampleBrowser without stopping the EndlessWorld sample when it is still generating and building terrains, an exception may occur.
Here is a screen record.
If you quit the SampleBrowser without stopping the EndlessWorld sample when it is still generating and building terrains, an exception may occur.
Here is a screen record.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
This is looking pretty great! I was able to reproduce the crash here too. For me it happened in Root during destruction of the WorkQueue.
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Yes, that's the problem. I'm confused that why it works well when hit Stoped first. Maybe there are some steps skiped when hit Quit directly.masterfalcon wrote:This is looking pretty great! I was able to reproduce the crash here too. For me it happened in Root during destruction of the WorkQueue.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
I haven't tried it yet but perhaps we need to abort the work queue requests when we shut down the sample or the terrain system?
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Yeah, I tried aborting it, and also removing the channel, but nothing changed.masterfalcon wrote:I haven't tried it yet but perhaps we need to abort the work queue requests when we shut down the sample or the terrain system?
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- Minaton
- Posts: 921
- Joined: Sat Jul 31, 2010 6:29 pm
- Location: Belgium
- x 80
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Congratulations! That looks really promising! 

Developer @ MakeHuman.org
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Hi, I have done it.The subject is OGRE_Contributor_License from Xiao Xiangquan.Assaf Raman wrote:Can you fill this form and send it to e-mail at the end of the forum - so we can merge your work to the main repo?
Post on this thread after doing it - so I will know that you have.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Seems fixed.masterfalcon wrote:This is looking pretty great! I was able to reproduce the crash here too. For me it happened in Root during destruction of the WorkQueue.
Derived classes didn't declare destructor as virtual, which is a common bug in the terrain component.
My work is almost done. I'll merge with trunk and complete wiki next.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
I have merged with the trunk default.Assaf Raman wrote:Can you give me a date when the work will be finished and the code merged?
I hope it could catch up with v1.9

Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Team Member
- Posts: 3092
- Joined: Tue Apr 11, 2006 3:58 pm
- Location: TLV, Israel
- x 76
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
@masterfalcon - when do you guys plan to actually merge to the trunk?
Watch out for my OGRE related tweets here.
-
- Minaton
- Posts: 921
- Joined: Sat Jul 31, 2010 6:29 pm
- Location: Belgium
- x 80
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
I'm very happy to see the project got finished. I haven't really got the time to test it out yet but I will try to do it soon. (and hopefully integrate it with the other terrain experiments I've been doing) 
Good job!

Good job!
Developer @ MakeHuman.org
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Weekly Progress
Next I'll keep on maintaining my fork and try my best to help merge it into trunk earlier.
- Finish the EndlessWorld sample, resolve bugs
Merge with trunk default
Update wiki
Next I'll keep on maintaining my fork and try my best to help merge it into trunk earlier.
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Thanks for all your hard work! Did you ever get that contributor agreement filled out and sent in?
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Yes, I have sent it to licensing@ogre3d.org.masterfalcon wrote:Thanks for all your hard work! Did you ever get that contributor agreement filled out and sent in?
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Perfect, thanks!
-
- OGRE Retired Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Oh, almost forgot. Were there any patches or bugs that you addressed?
-
- Google Summer of Code Student
- Posts: 102
- Joined: Tue Mar 20, 2012 3:20 am
- Location: China
- x 13
Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst
Ehh...I forgot it, too. So sorry, I'll check it right now.masterfalcon wrote:Oh, almost forgot. Were there any patches or bugs that you addressed?
Google Summer of Code 2012 Student
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon
Topic: "Improve and Demo the Terrain System"
Project links: Project thread, WIKI page, Code fork for the project
Mentor: masterfalcon