PDA

View Full Version : how can i use DEV C++


hot chip
12-23-2006, 02:58 AM
hi,

how can i use dev c++ http://www.bloodshed.net/devcpp.html for programming my shaders. I have all lib and include directorys installt and i have download the template for dev c++. http://animatic.no-ip.com/pub/dev/xsi/Mentalray_shader_DLL_Template.zip

The Problem: this template is writing for XSI and i need the right template for Max. When i only change the directory names in the template, it is not working. What is the right link parameter for compiling? :o

mfg
hot chip

hot chip
12-23-2006, 05:35 AM
i have found the problem. I musst use the shader.lib from Max8. Max9 will not work and i have installt the mi_shader_if.h. :(

edit: sorry this was not the problem. i find no way for using devc++, the Max9 shader..lib is work. I must use visual c++ 2005 express edition, then i have no problems.

of-air
12-23-2006, 05:21 PM
hey Hot Chip
just wanted to say thanks for trying.
I am trying to compile a simple shader for maya 7 using
the bloodshed c++ which is a great software.

if anyone can take this file and alter it so we could all just
compile shaders with a click of a button.

I am jist in the beginning of all this great world of shader
writing but i'm getting realy frustrated with all that involved
with copmiling the code to a running windows, maya 7 shader.

If anyone could help with a simple step by step -
that would be just great.

sorry for my english...
ofer.

hot chip
12-24-2006, 11:04 AM
Hi,

i have write on the german mentalray forum a steb by step description for using MentalRay+Max+VC+SDK to writen you self shaders. The description from VC++ and SDK install, is the same for XSI or Maya or standalone version.

a) install SDK + VC++ 2005 express
b) how do adjust paramerts of VC++ 2005: path, option ...
c) create a Projekt
d) create a .cpp File
e) compile you first Shader.
f) How do compile the stark shaders from autodesk.

the Result from the description is, you self made a shader and compilet to a dll. And sedond have compilet the stark shaders from autodesk.

here is the link: http://forum.german-mentalray-wiki.info/viewtopic.php?t=73


mfg
hot chip

janimatic
12-29-2006, 09:58 AM
hi,

how can i use dev c++ http://www.bloodshed.net/devcpp.html for programming my shaders. I have all lib and include directorys installt and i have download the template for dev c++. http://animatic.no-ip.com/pub/dev/xsi/Mentalray_shader_DLL_Template.zip


hello, i am the one who wrote this simple devc++ template.
It doesn't realy do anything complex though.
- It adds path/to/shader.lib to the linker arguments
- It adds path/to/XSISDK/include dir to the include directories list.
- It create a simplistic constant shader code (and an spdl that you can ignore, replacing it with a .mi file for maya/max)
I don't see any reason why maya/max packaged MR libs / includes couldn't let you use devc++.
MR doesn't need any specific c++ lib, it's just a C lib, and you should be able to use in any c++ dev environement (using extern "C" etc... if you want to program using c++ language)

hot chip
12-29-2006, 12:25 PM
hi janimatic,

i have tried to use your template, but i canīt create dll, that work. Why? When i use the template for XSI, it is work, but not for Max. Pleace can you make a template for Max?

mfg
hot chip

janimatic
12-29-2006, 12:33 PM
hum i never ever used max... and have no max license of course.
sorry

hot chip
12-29-2006, 01:01 PM
Hi janimatic

Ok, no problem. I am use ever what i need for my project max or xsi ;) So i think i must use vc++ for all variations. Thanks for your answer. :)

mfg
hot chip

dlanier
01-11-2007, 04:16 AM
Hi,

The Max libraries have been compiled with Visual Studio so I am not sure you can use them with Dev CPP...

Anyway, Visual Studio 2002 is the recommended compiler for Max 8 and Visual Studio 2005 for Max 9, so same for mental ray for Max shaders.

Regards,

David Lanier
Plug-ins & Shaders Development company
http://www.dl3d.com

JohnnyLA
01-24-2007, 12:26 AM
I'm also starting to figure out C++ 2005 Express Edition and was wondering if someone could translate those steps into English?

Babelfish does ok with the german site but it still munges some of the text...and it would be cool if it can be posted for other people too. :)

jj80
02-19-2007, 04:56 PM
thanks for that hot chip!

Kameleon
03-14-2007, 03:28 AM
hotchip is it possible to write that tutorial in english? Yesterday I've tried to follow your tutorial and I think I did all steps correct but still nothing :( I've installed PlatformSDK, changed all paths, but still got errors. I'm using VC++ Express Edition. It would be nice for someone to really explain how to have this working... Masterzap? :D:D:D