Search found 194 matches

by feelthat
Tue Jan 05, 2016 1:15 am
Forum: Open Discussion and Dev Announcements
Topic: add spot light and correct the direct light
Replies: 7
Views: 2774

Re: add spot light and correct the direct light

Vectrotek wrote:Very cool Spot Lights! Thanks! will definitely try to implement this!
file is here if u need
https://github.com/fatalfeel/proton_sdk ... 2Solid.vsh
by feelthat
Sat Jan 02, 2016 2:04 pm
Forum: Open Discussion and Dev Announcements
Topic: add spot light and correct the direct light
Replies: 7
Views: 2774

Re: add spot light and correct the direct light

//in CLightSceneNode.cpp //! sets the light data void CLightSceneNode::setLightData(const video::SLight& light) { LightData = light; switch(SceneManager->getVideoDriver()->getDriverType()) { //radians case video::EDT_OGLES2: LightData.OuterCone = (float)cos(LightData.OuterCone*3.141615926f/180.0...
by feelthat
Sat Jan 02, 2016 1:53 pm
Forum: Open Discussion and Dev Announcements
Topic: add spot light and correct the direct light
Replies: 7
Views: 2774

Re: add spot light and correct the direct light

//in COGLES2FixedPipelineRenderer.cpp void COGLES2MaterialBaseCB::OnSetConstants(IMaterialRendererServices* services, s32 userData) { int MAX_SHADER_LIGHTS; IVideoDriver* driver = services->getVideoDriver(); if (FirstUpdateBase) { WVPMatrixID = services->getVertexShaderConstantID("uWVPMatrix&qu...
by feelthat
Sat Jan 02, 2016 1:51 pm
Forum: Open Discussion and Dev Announcements
Topic: add spot light and correct the direct light
Replies: 7
Views: 2774

add spot light and correct the direct light

///in COGLES2Solid.vsh, COGLES2Solid2.vsh, COGLES2SphereMap.vsh ... ... ... uniform float uLightOuterCone[MAX_LIGHTS]; //add this var uniform float uLightFallOff[MAX_LIGHTS]; //add this var varying vec2 vTextureCoord0; varying vec4 vVertexColor; varying float vFogCoord; void dirLight(in int index, i...
by feelthat
Mon Aug 31, 2015 5:01 pm
Forum: Bug reports
Topic: drawStencilShadowVolume & drawStencilShadow bug
Replies: 5
Views: 1411

Re: drawStencilShadowVolume & drawStencilShadow bug

openGL ogles1.1 undefine _IRR_COMPILE_WITH_GUI_ of IrrCompileConfig.h and use ex 08.SpecialFX then bug will show~~~ Yeah, doesn't sound like you have the same bug. @feelthat: Do you have some example code to reproduce this? Or can it be reproduced with Irrlicht examples? I'm not really familiar with...
by feelthat
Mon Aug 31, 2015 1:20 am
Forum: Bug reports
Topic: drawStencilShadowVolume & drawStencilShadow bug
Replies: 5
Views: 1411

Re: drawStencilShadowVolume & drawStencilShadow bug

its because default is need depth mask when use no depth mask need restore and some transparent node also use no depth mask in GUI will always use depth mask. so enable _IRR_COMPILE_WITH_GUI_ will be good for drawStencilShadowVolume but disable drawStencilShadowVolume will bug~ so add BridgeCalls->s...
by feelthat
Sat Aug 29, 2015 7:29 pm
Forum: Bug reports
Topic: xcode can not build section
Replies: 3
Views: 1151

Re: xcode can not build section

sorry

is run error not build error

can not get correct value~~~
CuteAlien wrote:Which error do you get?
by feelthat
Sat Aug 29, 2015 7:28 pm
Forum: Bug reports
Topic: drawStencilShadowVolume & drawStencilShadow bug
Replies: 5
Views: 1411

drawStencilShadowVolume & drawStencilShadow bug

if undefine _IRR_COMPILE_WITH_GUI_ and do drawStencilShadowVolume

will have block area

need add BridgeCalls->setDepthMask(true); in bool COpenGLDriver::endScene()

also COGLES1Driver::endScene()
by feelthat
Sat Aug 29, 2015 7:16 pm
Forum: Bug reports
Topic: xcode can not build section
Replies: 3
Views: 1151

xcode can not build section

build on Xcode 4.2

in CXMeshFileLoader.cpp

f32 CXMeshFileLoader::readFloat()

//const f32 tmp = *(f32 *)P; //run fail~~

//need change to
f32 tmp;
memcpy(&tmp, P, 4);
by feelthat
Thu Aug 27, 2015 1:28 pm
Forum: Bug reports
Topic: [fixed]ogles1 function declare
Replies: 2
Views: 898

[fixed]ogles1 function declare

virtual void draw2DImage(const video::ITexture* texture, const core::position2d<s32>& pos, const core::array<core::rect<s32> >& sourceRects, const core::array<s32>& indices, const core::rect<s32>* clipRect=0, SColor color=SColor(255,255,255,255), bool useAlphaChannelOfTexture=false); nee...
by feelthat
Thu Aug 27, 2015 11:24 am
Forum: Open Discussion and Dev Announcements
Topic: irrlicht in Linux using Eclipse
Replies: 6
Views: 1791

Re: irrlicht in Linux using Eclipse

Fine thanks.

I will post whole project and post here for every download~

Like i do for proton sdk
sunnystormy wrote:Just posted a tutorial here on how to check for a properly-configured Eclipse project when working with Irrlicht.

Hopefully this helps with your situation. :)
by feelthat
Wed Aug 26, 2015 11:31 pm
Forum: Open Discussion and Dev Announcements
Topic: irrlicht in Linux using Eclipse
Replies: 6
Views: 1791

Re: irrlicht in Linux using Eclipse

code example and project file is faster may make a link to download? Hi, feelthat! I'd rather just explain how to do whatever it is you're looking for, rather than just handing over a project file. That way, other people who use Irrlicht via Eclipse on GNU/Linux can benefit. Would you mind listing s...
by feelthat
Wed Aug 26, 2015 7:02 pm
Forum: Open Discussion and Dev Announcements
Topic: direct and spot light for ogles2
Replies: 0
Views: 1473

direct and spot light for ogles2

//in COGLES2FixedPipelineRenderer.cpp //modify this function void COGLES2MaterialBaseCB::OnSetConstants(IMaterialRendererServices* services, s32 userData) { int MAX_SHADER_LIGHTS; IVideoDriver* driver = services->getVideoDriver(); if (FirstUpdateBase) { WVPMatrixID = services->getVertexShaderConstan...
by feelthat
Wed Aug 26, 2015 6:06 pm
Forum: Open Discussion and Dev Announcements
Topic: irrlicht in Linux using Eclipse
Replies: 6
Views: 1791

Re: irrlicht in Linux using Eclipse

Wa so cool

could u paste a link for a zip to me

or email me: i paste to ur private message box

sunnystormy wrote:Memememememememe! :D

What specifically did you want to know about using Irrlicht in Eclipse on GNU/Linux?