About Store Forum Documentation Contact



Post Reply 
Engine Shader Tutorial ?
Author Message
Biga Offline
Member

Post: #16
RE: Engine Shader Tutorial ?
thanks for the reply.

Quote:C:\Projects\EsenthelEngineShader\(move the appropriate rar files here)
C:\Projects\Shader CPP\(move the appropriate rar files here)
C:\Projects\Shader HLSL\(move the appropriate rar files here)
C:\Projects\material_user_shader.enum.h

my problem is I have no EsenthelEngineShader folder in the rar, only the other folders/file above. I either didnt find that in the EE source structure.

so ShaderCompile executed, also seems found the shader source, but it doesnt find the header referenced in EsenthelEngineShader which folder/files I dont have/find.

   
05-28-2014 07:47 PM
Find all posts by this user Quote this message in a reply
georgatos7 Offline
Member

Post: #17
RE: Engine Shader Tutorial ?
Hmm i see. So you're missing the actual header files since the "Shader CPP" = "C++ code" for the esenthel code editor and the "Shader HLSL"="Shader Code" which i edit with MS Visual C++ 2008.

Since i purchased the shader headers from the store i can still see the file there and the file structure is as seen below.

[Image: EE_shader_headers.jpg]

Since you got the esenthel source you might want to search for the individual files.
05-28-2014 09:42 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #18
RE: Engine Shader Tutorial ?
Hi,

The EsenthelEngineShader folder is extracted from the Esenthel Source Shader Headers.
All of the shaders and their headers are located in
"Esenthel\Engine\Source\Shaders" from the source package
https://github.com/Esenthel/EsenthelEngi...ce/Shaders
05-28-2014 11:01 PM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #19
RE: Engine Shader Tutorial ?
Hi, I have that folder in source kit and already tried.
But it doesnt have Main.h, while the folder Georgatos7 copied seems different and have Main.h.
Seems the GitHub link also doesnt have.
(This post was last modified: 05-28-2014 11:35 PM by Biga.)
05-28-2014 11:31 PM
Find all posts by this user Quote this message in a reply
georgatos7 Offline
Member

Post: #20
RE: Engine Shader Tutorial ?
Well the main.h is simply the include header file for all the other headers in this folder.
I don't think i'm allowed to post more than just some guidance but you can simply write it down on your own if you want.

for e.x.
#include "2D Constants.h"
#include "2D Functions.h"
.
.
.
(This post was last modified: 05-28-2014 11:58 PM by georgatos7.)
05-28-2014 11:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #21
RE: Engine Shader Tutorial ?
Hi, Yes that header just includes other headers.
You can see other shader codes, like this one:
https://github.com/Esenthel/EsenthelEngi...Simple.cpp
it's just:
Code:
/******************************************************************************/
#include "Defines.h"
#include "Engine Defines.h"
#include "2D Constants.h"
#include "Constants.h"
#include "Functions.h"
#include "Render Functions.h"
#include "Structs.h"
#include "2D Functions.h"
#include "Light.h"
#include "Engine Constants.h"
#include "Engine Functions.h"
#include "Simple.h"
#include "Ambient Occlusion.h"
#include "Vertex Fog.h"
/******************************************************************************/
05-29-2014 12:00 AM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #22
RE: Engine Shader Tutorial ?
thanks a lot to all of you, now it works! smile
it is a shame I didnt figure this out grin

just an additional final NOTE :

in the above rar with shader examples I had problems with paths. they have DataPath() setting which resulted no find of material and wrong destination of shader compilation. (tried with change and with removal of this line, but was no success).
I remembered somewhere I read about difference here for EE2, so I replaced this part in InitPre method with EE_INIT() and now everything is fine smile

thanks again!
(This post was last modified: 05-29-2014 09:14 AM by Biga.)
05-29-2014 09:12 AM
Find all posts by this user Quote this message in a reply
Post Reply