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.

Re: Environment Mapping with Irrlicht

Postby kinkreet » Thu Mar 17, 2016 10:52 pm

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/59088380/CubeToSphere.7z

Image
User avatar
kinkreet
 
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Environment Mapping with Irrlicht

Postby Mel » Fri Mar 25, 2016 12:31 pm

Tiene buena pinta XD
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
User avatar
Mel
Competition winner
 
Posts: 2224
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Environment Mapping with Irrlicht

Postby kinkreet » Sat Mar 26, 2016 6:02 pm

gracias! :P
User avatar
kinkreet
 
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Environment Mapping with Irrlicht

Postby vectorcorpse » Mon Jun 06, 2016 11:34 pm

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 :)
vectorcorpse
 
Posts: 86
Joined: Thu Feb 14, 2008 7:30 pm
Location: Portugal

Re: Environment Mapping with Irrlicht

Postby kinkreet » Tue Jun 07, 2016 9:07 am

User avatar
kinkreet
 
Posts: 64
Joined: Thu Oct 31, 2013 7:53 pm
Location: Barcelona, Spain

Re: Environment Mapping with Irrlicht

Postby christianclavet » Sun Jun 26, 2016 4:57 am

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?
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: Environment Mapping with Irrlicht

Postby mongoose7 » Sun Jun 26, 2016 7:33 am

You misunderstand. Arctan has always been available, but sometimes it is called atan and sometimes atan2. It is an issue of syntax only.
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Environment Mapping with Irrlicht

Postby christianclavet » Sun Jun 26, 2016 4:20 pm

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)
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Previous

Return to Code Snippets

Who is online

Users browsing this forum: No registered users and 1 guest