Page 10 of 13
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Tue Aug 21, 2012 8:13 pm
by Mattan Furst
@PhilipLB
Just to make sure we are all on the same page.
both Assaf, CABAListic and I want the your GSoC project to be merged to v1-9. Just as you did on
https://bitbucket.org/philiplb/ogrevolumeterrain2/.
now it only needs to be pushed to the main ogre source control on
https://bitbucket.org/sinbad/ogre (also on the v1-9 branch) .
I already gave you writing permissions to
https://bitbucket.org/sinbad/ogre about a month ago (as discussed in earlier posts).
would you like to do the honors?
edit:
p.s
I thought this would be the fun part
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Tue Aug 21, 2012 8:15 pm
by PhilipLB
With pleasure, right now.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Tue Aug 21, 2012 10:10 pm
by PhilipLB
Done!
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Tue Aug 21, 2012 10:14 pm
by duststorm
nice
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Tue Aug 21, 2012 10:17 pm
by CABAListic
Excellent! Now that it's in v1-9, it's easy to get it into v2-0 and default, too. It'll just get picked up once we do the next forward merge.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Tue Aug 21, 2012 10:27 pm
by Mattan Furst
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 12:20 am
by Assaf Raman
I have issues in the d3d11 render system after your project commit:
02:03:11: OGRE EXCEPTION(7:InternalErrorException): Unable to compile Cg program 2817628953_FS: The compile returned an error.
SGXLib_TriplanarTexturing.cg(7) : error C1008: undefined variable "normalAndFogVal"
SGXLib_TriplanarTexturing.cg(8) : error C1008: undefined variable "texScale"
SGXLib_TriplanarTexturing.cg(9) : error C1008: undefined variable "texScale"
SGXLib_TriplanarTexturing.cg(10) : error C1008: undefined variable "texScale"
in CgProgram::compileMicrocode at C:\hg_Code\ogre\d3d11_GSoc\forMerge\src\PlugIns\CgProgramManager\src/OgreCgProgramManagerDll.cpp (line 67)
Will you be able to find some time to fix this?
Also - what is going on with the EOL on your commit? Do you use the '"hgext.win32text" extension?
It led me to back-out the undo the back-up of one of my commits... Make sure you commit with the right EOL.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 12:39 am
by masterfalcon
I also saw that happening with GL as well.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 12:42 am
by Assaf Raman
Well, parameters are just missing from SGXLib_TriplanarTexturing.cg, I don't understand how it worked before the commit, this smells like a bad commit...
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 9:07 am
by PhilipLB
Will be fixed asap.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 2:53 pm
by Mattan Furst
Parameters are fixed temporarily including a small problem with parameter creation problem in the tri-planar shader
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 3:03 pm
by PhilipLB
Thx, I'll have a look at it anyway what the problem was / fix the temp. solution.
I've seen, that there are a bunch of warning-fixes done, like changing
Code: Select all
virtual const Real getValue(const Vector3 &position) const = 0;
to
Code: Select all
virtual Real getValue(const Vector3 &position) const = 0;
What warning was that?
Isn't it ok to return const stuff?
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 3:11 pm
by Assaf Raman
I don't know
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 3:14 pm
by CABAListic
No, apparently it's not ok for POD types, because as return values they are already treated as const or something like that. Which I think is a pain in the ass, because it is ok and legitimate to do for non-POD types, and I hate these kinds of inconsistencies.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 3:21 pm
by FlorianGeorge
http://stackoverflow.com/questions/1134 ... eturn-type
I personally don't think it hurts to add the const to keep it consistently, and I don't get any warnings for it in Visual C++, but i guess the gcc community would get annoyed by the warnings.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 3:31 pm
by PhilipLB
Interesting, thx.
(Cpp is such a beast...)
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 3:58 pm
by TheSHEEEP
It's called diva
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 7:43 pm
by bstone
Adding const to things returned by value as opposed to references and pointers makes little sense since you give the value away and don't really care if it's modified or not. It doesn't matter if it's a built-in type or a user defined one. Furthermore, once you get into rvalue refs that habit will be harmful for types supporting move copy/construction semantics and will bite you in the back once in a while
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 9:10 pm
by CABAListic
You do care because it prevents certain mistakes, e.g.
Now, for POD types like ints this is already illegal code because they are already treated as const rvalue. That's why GCC gives you a warning if you declare someFunc as const int - the const qualifier is redundant. But if it returns a class type, the const is not redundant and can prevent similar mistakes. So unless you know you want different behaviour, adding const to non-POD return values is good practice, imho.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 9:19 pm
by Mattan Furst
Hello Philip,
I just talked to Assaf. One of your check-ins "3760 (e09c55ac19a0) Volume Rendering: added volume media" contains a large media file called samples\media\volumeTerrain\volumeTerrainBig.zip. This file is to big for Ogre's repository taste.
I am currently researching ways to strip the file from Ogre.
Do not attempt to delete it or change it. That will not remove it from the repository. it will just add to it.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 9:33 pm
by Assaf Raman
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 9:36 pm
by Assaf Raman
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 9:41 pm
by Assaf Raman
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 10:11 pm
by Mattan Furst
Assaf
I wasn't aware of the HisteditExtension extension. But how ever it is used I doubt its that easy. from what I've read mercurial is not built for these sort of things. if you remove something from the repository it changes the entire history and the repository becomes hard to merge. and even if you do that you need to make sure it doesn't come back in from other forks.
Re: [GSoC 2012] Volume Rendering with LOD aimed at terrain
Posted: Wed Aug 22, 2012 10:34 pm
by PhilipLB
This is the 3D texture with the volume data of the terrain. What to do without it? It's 256x256x256. I could create one with 128x128x128 maybe, but then the terrain has far less details. But this .dds would be 8MB then.
But I'd suggest to just stay with the big file now if it isn't easy to be removed. Sorry to have not used 128^3 from the beginning on.