Simple cloud layer SceneNode

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.

Re: Simple cloud layer SceneNode

Postby randomMesh » Fri Oct 14, 2011 8:44 am

I disagree, the cleaner solution is to only use the needed headers.

GCC can only use the precompiled header in your application if the same compiler switches are set as when the header was compiled and it may use at most one. What is if you use more than one library?

Don't be lazy, start to write clean code now!
"In fact, nearly every sequence of punctuation is used for something in Perl. So, if you get writer’s block, just let the cat walk across the keyboard, and debug the result."

Katastrophe - A free, open source flocking boids simulation
User avatar
randomMesh
 
Posts: 1138
Joined: Fri Dec 29, 2006 12:04 am

Re: Simple cloud layer SceneNode

Postby hendu » Fri Oct 14, 2011 10:40 am

Even reduced headers will take longer to compile than with one precompiled header.

What is if you use more than one library?

Well, in my project I have one main include including everything else, and precompile that whenever any of my headers change. Thus no problem with the flags or using multiple libraries, and fast compiles despite C++.
hendu
 
Posts: 1556
Joined: Sat Dec 18, 2010 12:53 pm

Re: Simple cloud layer SceneNode

Postby tbw » Fri Oct 14, 2011 5:22 pm

I've uploaded a fixed archive.
I tried to build the source based on the coding style of the scenenodes included in irrlicht.
Out of that view it is correct to reduce headers (Every scenenode in irrlicht is coded that way). Also it would be correct to replace the #define with with a static uint (I did not find any scenenode in irrlicht using a #define).
On the other hand in my projects I act like hendu (using precompiled header).
So in the end it depends on the coding policies (like naming conventions too)....
Nevertheless thank you for the hints and the comments!
tbw
 
Posts: 58
Joined: Sat Jan 15, 2011 9:51 am
Location: Germany

Re: Simple cloud layer SceneNode

Postby Travis » Thu Nov 24, 2011 10:48 am

It's a pity the download(http://www.mediafire.com/?yin80e9dlzvatye) doesn't exists :(
:roll:
Travis
 
Posts: 2
Joined: Sun Feb 27, 2011 3:23 pm

Re: Simple cloud layer SceneNode

Postby Travis » Thu Nov 24, 2011 11:16 am

Sorry, it's still there! My bad network
Travis
 
Posts: 2
Joined: Sun Feb 27, 2011 3:23 pm

Re: Simple cloud layer SceneNode

Postby 804 » Sun Jan 08, 2012 11:00 am

Travis wrote:Sorry, it's still there!

No, it isn't ;(
///////////////////////////////////////////
My Forum: http://game-home.1x.de/
My Homepage: http://mediadesign.about.lc/
///////////////////////////////////////////
User avatar
804
 
Posts: 73
Joined: Thu Nov 10, 2011 7:07 pm

Re: Simple cloud layer SceneNode

Postby aaammmsterdddam » Mon Jan 09, 2012 7:55 am

woah! EPIC!
this is really interesting.
(n^(n-n))-1
aaammmsterdddam
 
Posts: 520
Joined: Mon Oct 24, 2011 10:03 pm

Re: Simple cloud layer SceneNode

Postby RdR » Mon Jan 09, 2012 2:17 pm

Download link down :S
Anyone still has these files somewhere?
User avatar
RdR
Competition winner
 
Posts: 259
Joined: Tue Mar 29, 2011 2:58 pm

Re: Simple cloud layer SceneNode

Postby tbw » Mon Jan 09, 2012 3:33 pm

I will reupload it (reachable via a persistent link).
Give me some time and excuse me for the hazzle...
tbw
 
Posts: 58
Joined: Sat Jan 15, 2011 9:51 am
Location: Germany

Re: Simple cloud layer SceneNode

Postby tbw » Fri Jan 13, 2012 7:34 pm

tbw
 
Posts: 58
Joined: Sat Jan 15, 2011 9:51 am
Location: Germany

Re: Simple cloud layer SceneNode

Postby RdR » Fri Jan 20, 2012 1:17 pm

Thanks for uploading, works very nice.

One small bug tho, TextureScale not properly set on deserializeAttributes();
Changed
cpp Code: Select all
 
TextureScale = in->getAttributeAsFloat("TextureScale");
 


To
cpp Code: Select all
 
setTextureScale(in->getAttributeAsFloat("TextureScale"));
 


And after the nodes are created by your Custom scene node factory, still need to set the correct MaterialTypeParam.
User avatar
RdR
Competition winner
 
Posts: 259
Joined: Tue Mar 29, 2011 2:58 pm

Re: Simple cloud layer SceneNode

Postby tbw » Fri Jan 20, 2012 4:51 pm

Thank you for the hints. I will correct the errors and upload the fixed version...
tbw
 
Posts: 58
Joined: Sat Jan 15, 2011 9:51 am
Location: Germany

Re: Simple cloud layer SceneNode

Postby ap369 » Thu Feb 02, 2012 11:40 pm

cooooooooooooooool thx ;)
ap369
 
Posts: 6
Joined: Sat Jan 28, 2012 12:18 am
Location: Tunisia

Previous

Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest