Search found 13 matches
- Fri May 18, 2012 4:24 pm
- Forum: Code Snippets
- Topic: TGMs Shader Package[C++/GLSL]
- Replies: 89
- Views: 128921
Re: TGMs Shader Package[C++/GLSL]
I actually took the different route and just create the callbacks seperately And load them from a file. in my sphere object: //ApplyShader //_______________________________________________________________________ irr::io::path frag = "assets/shaders/Inferno.frag"; irr::io::path vert = &quo...
- Wed May 16, 2012 2:14 am
- Forum: Code Snippets
- Topic: TGMs Shader Package[C++/GLSL]
- Replies: 89
- Views: 128921
Re: TGMs Shader Package[C++/GLSL]
Sorry for necro-raiding this topic. But the examples that are given are all working within the main.
How will, for example, the bloom shader work if don't want to call the setRenderTarget in the "main loop"?
How will I go about adding the IPostProcessBloom to individual objects?
How will, for example, the bloom shader work if don't want to call the setRenderTarget in the "main loop"?
How will I go about adding the IPostProcessBloom to individual objects?
- Mon May 14, 2012 12:10 am
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
I tried changing work directory before my solution, it gave all sort of problems with other objects trying to find files. Of course it's just me not fully grasping everything in C++ and such. Here is slightly better "solution" with the win32 api. irr::video::ITexture * TextureManager::find...
- Sun May 13, 2012 11:24 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
Yeah I figured that much. This is hopeless I'm working on this far too long. All I really wanted is to look for a file in a given path and all it's subfolders. But I can't figure it out. I guess I have to try a different approach. thanks anyways. Edit: Removed the Irrlicht filelist and just went wit...
- Sun May 13, 2012 10:59 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
Like I said before, the method had no problem finding my file in a SUBFOLDER. Even now that seems to stop working even though I didn't change anything.
- Sun May 13, 2012 10:47 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
Actually the filelist is untouched, I use the windows api to look trough folders. I was able to use the filelist base folder and look in it and all sub folders. I don't exactly "change" folder. I just concatenate the folder names until findfile finds the file at the given path. It used to ...
- Sun May 13, 2012 10:38 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
Look at my edit. I did miss the call to driver->getTexture(). But like I said, this is not the problem. If i try: int ind = filelist->findFile("assets/test.png", false); ind is -1. And yes the map assets is at the base. And test.png is there in assets. And this is tested before I even look...
- Sun May 13, 2012 10:21 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
1: No I return an ITexture. I think you missed the point of the method. The method recursively looks in every folder. with findfile I check if the file is in the current folder. If so, I create the texture with driver->getTexture() passing the concatenated map names + file name and point my pointer ...
- Sun May 13, 2012 10:03 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
Ok for some reason findfile isn't working at all anymore =(
- Sun May 13, 2012 8:03 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
I'm rather confused, the path name is still valid. it shows in the console output. I simply concatenate the paths and try to pass it in the findile method of irrlicht. I check if the file exists at the path by checking if the return int32 is not -1. If so I pass the concatenated path into the driver...
- Sun May 13, 2012 3:14 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
- Sun May 13, 2012 10:56 am
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
Re: File list. Recursively searching folders.
Look at the image.
That's the result path.
That's the result path.
- Sat May 12, 2012 11:23 pm
- Forum: Beginners Help
- Topic: File list. Recursively searching folders.
- Replies: 18
- Views: 1541
File list. Recursively searching folders.
Hi there, I'm not sure how IFileList works, but it looks like it can only find items one folder from the "current" folder. The following code is the basic look up. It first searches the path I've added to my searchPaths ( which is basically just an array of irr::io::path ). The first folde...