Page 6 of 8

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sun Aug 12, 2012 9:35 am
by Assaf Raman
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sun Aug 12, 2012 9:43 am
by xiaoxiangquan
Assaf 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.
Of course :D.
I'll do it after posting this week's progress report.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sun Aug 12, 2012 10:10 am
by Assaf Raman
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Mon Aug 13, 2012 7:22 am
by xiaoxiangquan
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Mon Aug 13, 2012 7:25 am
by Assaf Raman
xiaoxiangquan wrote: I think it will be ready to be merged into trunk at the end of gsoc.
Can you give me a date when the work will be finished and the code merged?

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Mon Aug 13, 2012 7:31 am
by xiaoxiangquan
Assaf Raman wrote:Can you give me a date when the work will be finished and the code merged?
Before the "Firm Pencils Down" date, August 20.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Mon Aug 13, 2012 8:46 am
by masterfalcon
I was just going over the code and have a question.

In both TerrainLodManager::handleRequest and TerrainLodManager::handleResponse there is this code:

Code: Select all

			// skip re-assign
			if(lastTreeStart != lodinfo.treeStart)
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?

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Mon Aug 13, 2012 9:22 am
by xiaoxiangquan
masterfalcon wrote:I was just going over the code and have a question.
In both TerrainLodManager::handleRequest and TerrainLodManager::handleResponse there is this code:

Code: Select all

			// skip re-assign
			if(lastTreeStart != lodinfo.treeStart)
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?
Yes, some different LOD levels share the same quad-tree level ranges. For example:
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 14, 2012 3:40 am
by xiaoxiangquan
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 14, 2012 6:36 am
by masterfalcon
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 14, 2012 6:54 am
by xiaoxiangquan
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.
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 14, 2012 7:56 am
by masterfalcon
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?

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 14, 2012 8:02 am
by xiaoxiangquan
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?
Yeah, I tried aborting it, and also removing the channel, but nothing changed.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 14, 2012 11:35 am
by duststorm
Congratulations! That looks really promising! :)

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Wed Aug 15, 2012 1:52 am
by xiaoxiangquan
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.
Hi, I have done it.The subject is OGRE_Contributor_License from Xiao Xiangquan.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sat Aug 18, 2012 8:18 am
by xiaoxiangquan
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.
Seems fixed.
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.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sat Aug 18, 2012 10:33 am
by xiaoxiangquan
Assaf Raman wrote:Can you give me a date when the work will be finished and the code merged?
I have merged with the trunk default.
I hope it could catch up with v1.9 :D

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sat Aug 18, 2012 12:30 pm
by Assaf Raman
@masterfalcon - when do you guys plan to actually merge to the trunk?

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sat Aug 18, 2012 1:33 pm
by duststorm
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!

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Sun Aug 19, 2012 6:50 am
by xiaoxiangquan
Weekly Progress
  • Finish the EndlessWorld sample, resolve bugs
    Merge with trunk default
    Update wiki
This is the last report. I think I have already met most of my goals in the proposal. Really thank you all, without you it would be very tough for me. The help is invaluable, especially the bug reports and suggestions on resolving terrain paging hiccups.
Next I'll keep on maintaining my fork and try my best to help merge it into trunk earlier.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 21, 2012 4:13 am
by masterfalcon
Thanks for all your hard work! Did you ever get that contributor agreement filled out and sent in?

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 21, 2012 4:21 am
by xiaoxiangquan
masterfalcon wrote:Thanks for all your hard work! Did you ever get that contributor agreement filled out and sent in?
Yes, I have sent it to licensing@ogre3d.org.

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 21, 2012 4:55 am
by masterfalcon
Perfect, thanks!

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 21, 2012 4:58 am
by masterfalcon
Oh, almost forgot. Were there any patches or bugs that you addressed?

Re: [GSoC 2012 - Accepted] Improve and Demo the Terrain Syst

Posted: Tue Aug 21, 2012 5:01 am
by xiaoxiangquan
masterfalcon wrote:Oh, almost forgot. Were there any patches or bugs that you addressed?
Ehh...I forgot it, too. So sorry, I'll check it right now.