![]() |
|
|
#1
|
|||
|
|||
|
Hi,
I write my first shader based on p_shaders (thanks Pavel). It is just a constant color with many buffers. ![]() Here the problem : - when i create > 44 framebuffers with no texture, all is good. - when i create > 44 framebuffers with texture on "render slot" or buffer slot, my Maya crash : Code:
DB 0.3 fatal 041061: invalid tag value 0x31dc4aa0 requested ![]() It is the first time i am programming in C++ . I don't know C++...Please see the code (and cleaning if you want ).Thank. Last edited by bigbossfr; January 10th, 2010 at 22:28. |
|
#2
|
||||
|
||||
|
Possible you have unnecessary variables in your p_buffer_writer_t struct.
It should have same parameters with same order that *.mi file have. You also don't need static_param_dof (it's for p_physical_lens_dof shader only). You don't need ',' after last parameter in *.mi file.
__________________
Pavel Ledin |
|
#3
|
|||
|
|||
|
Hi Pavel,
Thank for your answer ! So : - i deleted all the static_param_dof in the p_static_param.h. I don't know if i have unnecessary variables. - at the end of my p_buffer_writer.mi, i put : Code:
boolean "restore_normal" #: shortname "restn" My Maya crash again (with my 54 buffers) when i connect a texture (it is not crashing when i put nothing, just a color) I don't know why Here the files cleaned with your advice. Thank you Pavel. Last edited by bigbossfr; January 11th, 2010 at 21:34. |
|
#4
|
||||
|
||||
|
I'm talking about these lines:
Code:
miBoolean specialC1_pass; miBoolean specialC2_pass; ... miBoolean specialC54_pass;
__________________
Pavel Ledin |
|
#5
|
|||
|
|||
|
If i delete all this lines, my shader doesn't compile, i have many error like :
Code:
p_buffer_writer.cpp(288) : error C2039: 'specialC10_pass' : is not a member of 'p_buffer_writer_t' I don't know what i can do. |
|
#6
|
||||
|
||||
|
like this: sp->specialC10_pass = *mi_eval_boolean(¶s->specialC10_pass); It's not used in your code.
__________________
Pavel Ledin |
|
#7
|
|||
|
|||
|
Yeahhhh, it is working now.
Thank you very very much Pavel ! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT +1. The time now is 14:21. |