AShadow memory functions

Blitz3D Forums/Blitz3D Userlibs/AShadow memory functions

ChristianK(Posted 2007) [#1]
Hi,
does anybody know what the functions retW, retC, retI and retF do? They are included in AShadow lib by Anreyman.


t3K|Mac(Posted 2007) [#2]
i think its like peek. retI returns integer, retF returns float and so on.
but i am not 100% sure.


ChristianK(Posted 2007) [#3]
Yes, that seems to be right.
The syntax of retI is: retI%( int% )
Int% must be a handle to something, but i don't know what the function returns. It is used to set a texture:
BBSetTexture( stage, retI( TextureBuffer( texture ) + 12 )


Pinete(Posted 2007) [#4]
Hi,
I'm also a user of Ashadow and I would like to ask you dudes about the next issue.

When I put working together DOF + water, the water plane results cut where the DOF starts.

Do you have experienced this? its really annoying and I don't know how to avoid it making both effects can work together...

Thanks in advance!


t3K|Mac(Posted 2007) [#5]
i didn't use the water fx. i'll do that in a few weeks - so i cannot give you any hints. sorry.


ChristianK(Posted 2007) [#6]
DOF + water works fine on my Radeon X800 GTO.
What graphics card do you use?


Pinete(Posted 2007) [#7]
Hi Progamer,
I'm using a 6600GT...
I'll put some time this afternoon the screenshots in order to show you what i'm refering to.

Have you tried with an aerial view, where you can appreciate better the problem of they would exist?

However, do you know what could be the problem? maybe the graphics card? something else?

Thanks for your feedback, really appreciated..


Mikele(Posted 2007) [#8]
>Pinete
I have the same with 6600 (DOF plane cut bumped water).

EDIT:
You can edit Ashadow.bb
In PostProcess_Render() function add a line before UpdateDOF( camera ):
If RefDOF Then AStretchRect BackBuffer(), 0,0,GraphicsWidth(),GraphicsHeight(),  TextureBuffer(Screen_texture), 0,0,Ref_copyW ,Ref_copyH

From now all looks ok.


Pinete(Posted 2007) [#9]
WOW!!!!!
Mikele, thank you very much!!!!!
WORKS AWESOME NOW!!!!
thank you dude!!
you're a genius!! how could you deal with the messy code of Ashadow??!!

Could you please explain me what does the line I've introduced?

Thanks a lot, absolutely appreciated! thanks!!

best regards!


Mikele(Posted 2007) [#10]
A small update -add If RefDOF Then...


Pinete(Posted 2007) [#11]
Thanks again!
that's the kind of help because I love this forum!
I wish to be a coder of your level some day...
;)

Thanks!


All the best,


Mikele(Posted 2007) [#12]
I'm not a good coder but... this work ;)


John Blackledge(Posted 2007) [#13]
Sorry - I seem to have missed something.
What is Ashadow?


Mattizzle(Posted 2007) [#14]
Its a lighting engine... come on dude the search link is laughing at you. ;-)


Pinete(Posted 2007) [#15]
Ashadow it's a lib capable of doing effects that Blitz doesn't (DOF, Bloom, Blur) in a fast way.

It's not free, I don't remember how much it costs.

Look for 'ashadow' in the forums and you'll find links and some information.

Regards!


Mikele(Posted 2007) [#16]
>John
Look at http://andreyman.ucoz.ru/photo/

It's a nice library with a few effects for Blitz3D (stencil shadows - very fast but not work with my animated b3d meshes, bloom, depth of field, blur, environment bumpmaping, refractions).


Mikele(Posted 2007) [#17]
.


Mikele(Posted 2007) [#18]
.


Pinete(Posted 2007) [#19]
Hi!
Mikele, do you know how to achieve the specular effect on floor or some materials of one of the pictures of your Ashadow link? (Demo4(Q4Tank)

Thanks in advance!


Mikele(Posted 2007) [#20]
>Pinete
I don't know exactly how it works but i have something for you ;).
Download a demo (250 kb src+media): http://strony.aster.pl/mikele/blitz/FakeSpecularASHADOW.zip
It's a small modification of Andrey's demo.


Pinete(Posted 2007) [#21]
Thank you very much Mikele!
Really appreciated!!
It's just the kind of effect I was looking for!
Do you know if is it possible to obtain a "standard" bump mapping with Ashadow? I say, without reflections or similar stuff used in water or in order to make brilliant floors, just bump mapping.

BTW, I would like to thank you so much your help and send to you some of the screenshots of the games I'm making. Where I could send you this files?

Thanks in advance!


Mikele(Posted 2007) [#22]
Hi, Pinete!
For "standard" bumpmaping you can add new texture (no cubemap):
ReftexSTATIC =  CreateTexture( 32,32,1+256)
or
ReftexSTATIC =  LoadTexture( "data\lightBl.jpg",1)
TextureBlend ReftexSTATIC,2

and change line:
EntityTexture BlicPol, Reftex,0,0
to
EntityTexture BlicPol, ReftexSTATIC,0,0

You can send the screenshots to mikele@...


Tim(Posted 2007) [#23]
hey mikele did you wrote the library? i bought it too and its just great! all thumbs up to the creator andyman or who it is


Mikele(Posted 2007) [#24]
No, I'm only user too :)
Btw. I talked with AndreyMan (author of Ashadow library) on his forum and this is solution to avoid a problem with DOF + BUMPED WATER:
CreatePixelDistortion( ) 
SetRefractMode(1)
CreateDOF etc...

and now my patch is not needed :)


Trader3564(Posted 2007) [#25]
where can i get the demo/example? all links are broken or lead nowhere.


Pinete(Posted 2007) [#26]
Oh Thanks a lot Mikele, I've not read your last solution to the problem of refractive water + DOF!

Thanks a lot!!


All the best!


Azaratur(Posted 2007) [#27]
sorry guys, where i can find a-shadows lib?


RifRaf(Posted 2007) [#28]
removed.. started a new topic. sorry


SabataRH(Posted 2007) [#29]
Greetings, Ive had ashadow for sometime now and only decided to give it another look today. When using the stencil shadows I get flicker and i rotate to some angles. By flicker i mean the shadows completely disapear then reappear. Ive tried both flip 1 and flip 0.

Was wondering if anyone else had this problem and was able to fix it? Thanks.

EDIT: seems it was just a camerarange issue. Nice lib this is. The speed is amazing.


SabataRH(Posted 2007) [#30]
I got the latest last night 1.9 or 1.095 or whatever it is, but it has no samples and reading the docs is like trying to program in assembly.

Are there any sample.bb's showing how to work the dof and such?


_33(Posted 2007) [#31]
The samples are the demos on the website of the product. There are at least 4 or 5, and the code is relatively simple.