English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 06 September 2017, 18:43   #41
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 48
Posts: 491
About abs do this...At the top of your source, after all the includes prototype abs like this.

Code:
extern "C" int abs(int);
alkis is offline  
Old 07 September 2017, 04:20   #42
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
Quote:
Originally Posted by alkis View Post
About abs do this...At the top of your source, after all the includes prototype abs like this.

Code:
extern "C" int abs(int);
yes, that did it, thanks

#1) just removed the file issue, kind of redundant, since all settings are stored in
the scene file already. not worth the trouble for our small user base

Last edited by emufan; 07 September 2017 at 08:33.
emufan is offline  
Old 25 September 2017, 17:31   #43
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
I found two more plugins by Bman

one I was able to convert from cpp to c. just a problem with the result of the effect.
the 2nd one I have problem while translating from cpp to c:
Code:
        dXInit((sa->oPos[0] / defInst->fXSize) - defInst->fXCenter);
mand.c 428 Error 15: invalid function call

        dYInit((sa->oPos[1] / defInst->fYSize) - defInst->fYCenter);
mand.c 429 Error 15: invalid function call
I had to move the definitions to the first lines of the src, but something does not work
for dXInit and dYInit.
orig and my src included.
are you still around, alkis?

#1) i've found something trivial: i've changed:
Code:
	dXInit((sa->oPos[0] / defInst->fXSize) - defInst->fXCenter);
	dYInit((sa->oPos[1] / defInst->fYSize) - defInst->fYCenter);
to
	dXInit = ((sa->oPos[0] / defInst->fXSize) - defInst->fXCenter);
	dYInit = ((sa->oPos[1] / defInst->fYSize) - defInst->fYCenter);
it does work, but the effect is not mandelbrot alike, hmm.
can you look at it?! maybe i made a mistake somewhere.

#2) hmm, it does work, it is not a fractal mandelbrot effect,
it "only" influences the luminosity of a surface.
and this does work.

I should look for some easy math formulas for certain effect, so we could add some new effect
to the plugins, similiar to the fader plugin, i made from the blinker plugin.

problem may be those given API functions, something with a pixelshader would
be worth an attempt, but there is not a single example src for that plugin type, IIRC :/

#3) pixelshader is also only some effect to the final rendered image.
those shaderplugins are the type to add some procedural textures to an object/surface. *hmm*
Attached Files
File Type: lha mandel.lha (32.7 KB, 52 views)

Last edited by emufan; 25 September 2017 at 19:53.
emufan is offline  
Old 25 September 2017, 17:53   #44
emufan
Registered User
 
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,546
I just found this great website by Bman: The Art of LightWave Plug-ins
Creating a LightWave Image Filter plug-in, step by step.
Bman's website has the new and older plugins, incl source and some info about Bman himself.

*big thanks* to archive.org for preserving those old website.
all those old stuff would have been lost otherwise.

#1) what about a displacement plugin, HOT Ocean ToolKit , is open source
next to the shader/particle effect, the transformation for a given mesh should be doable.
it is more or less an advanced gooze displacement plugin.

Last edited by emufan; 25 September 2017 at 18:05.
emufan is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Screech!! v2.41" & "Screech!! [AGA] v2.51" - "HD install" --> "ADFs" DamienD request.Old Rare Games 39 03 April 2019 22:53
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" DemosongIHunter request.Music 40 13 April 2017 05:06
"Reminder "Lincs Amiga User Group aka "LAG" Meet Sat 5th of January 2013" rockape News 4 30 January 2013 00:06
CD32 Image-Name-Bug: "...(bla)[!].zip" -> "...(bla)[" / "...[test].zip" -> "...[tes" cfTrio support.WinUAE 8 18 December 2012 16:31
Problems with "Thespywholovedme", "Flood", "Shinobi" sareks support.Games 12 03 May 2006 14:52

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06336 seconds with 14 queries