Environment Mapping with Irrlicht

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Environment Mapping with Irrlicht

Post by kinkreet »

I have written an interface with the code to generate spherical maps :)

This is perfect for the tools folder :D

https://dl.dropboxusercontent.com/u/590 ... oSphere.7z

Image
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Environment Mapping with Irrlicht

Post by Mel »

Tiene buena pinta XD
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Environment Mapping with Irrlicht

Post by kinkreet »

gracias! :P
vectorcorpse
Posts: 86
Joined: Thu Feb 14, 2008 7:30 pm
Location: Portugal

Re: Environment Mapping with Irrlicht

Post by vectorcorpse »

Nadro wrote:Hi Mel,

I see a following issue in OpenGL:
GLSL shader failed to compile
Fragment shader failed to compile with the following errors:
ERROR: 0:16: error(#143) Undeclared identifier: atan2
ERROR: 0:16: error(#202) No matching overloaded function found: atan2
ERROR: error(#273) 2 compilation errors. No code generated
Do you have a NV card? NV drivers are problematic for develop OpenGL...(atan2 isn't available in GLSL, this is the same situation like with a float4 etc, IIRC you can avoid those problems by adding '#version 110' or higher - NV drivers works better if you provide '#version').

Anyway this demo looks really nice, thanks for share it! :)

Cheers,
Even with a #version 300 atan2 still gives out an error on non-nv cards since it really doesn't exist in GLSL, nv cards introduce a tone of errors on multiple shaders because they are very permissive when it come to lack of identifiers or simply using hlsl or cg commands on glsl that others cards simply wont tolerate, in any case and if i am not mistaken HLSL atan2(x,y) == GLSL atan(y,x) that said it should be a easy fix :)
kinkreet
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Environment Mapping with Irrlicht

Post by kinkreet »

christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Environment Mapping with Irrlicht

Post by christianclavet »

From what kinkreet, this seem only available on GLSL 4.0+ This would be very restrictive (particulary for intel hardware)
Is there an equivalent way of doing the ATAN command without requiring GLSL 4.0?
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Environment Mapping with Irrlicht

Post by mongoose7 »

You misunderstand. Arctan has always been available, but sometimes it is called atan and sometimes atan2. It is an issue of syntax only.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Environment Mapping with Irrlicht

Post by christianclavet »

Oups. I did not see the bottom of the page. The header was " atan - OpenGL 4 Reference..." Did not see the bottom that said that it's available since almost the beginning. So it should not give a syntax error then... This reference page is coming from the Kronos group, so if a compiler doesn't understand that command they don't follow the standard. (Unless Kronos changed the name during the years)
Post Reply