Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with code convert for NORMALIZATOR filter.

Author
Message
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 14th May 2018 20:32 Edited at: 14th May 2018 20:41
Hello!
Can anyone help with the conversion of code to DBPRO code?
Here is the link to the article - http://stannum.co.il/blog/1/reconstructing-a-height-map-from-a-normal-map
Unfortunately, I do not quite understand the syntax of this code. I would like to use this method of reconstructing the height map from normalmap in NORMALIZATOR.

By the way, here are a few keys STEAM version NORMALIZATOR - http://store.steampowered.com/app/703300/

If you took one of the keys, let us know that it is activated.
5VN8G-X3DYM-4FWCV
A9LVD-4R3RC-7H8MP
FEYB4-R224N-38BAW
RYXHZ-E7ZYF-MPCRC
JK9CX-W8QW2-XB8IQ
V40TA-VALHV-2N5V3
EDKFC-BYTN7-XXK57
7MDH0-GDLWQ-MWLJ0
0XGNY-Y8F9V-8VWVG
XFYZT-5TCY7-LANA0
ATZ25-M8KZ6-MGTAA
QYR6L-GR4QZ-PZB7W
IFV57-8IA8K-9H4VH
KXG5D-4J5P7-EBZQK
LQJN0-BLKAA-3XPYE
C75K4-TRYNE-CEG95
T0ETP-HZTIC-QFPMN
WTHEI-PTXDF-EW7VW
G0KNG-RAWPV-M5KCY
V743E-LYJCC-6VEKX
CWP2A-A9ZAE-7CLLA
7G9V4-GFYEE-FK4M7
EX3HL-WR5F3-CTPIE
3G78P-LQDIA-FAMVP
YFLGG-L9ZWB-5ZFZ6
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 15th May 2018 08:43
ah yes, I most likely can. I'll take a look after work. Will be interesting as I'm working on my next incarnation of Heightmap 2 GameGuru at the moment.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 15th May 2018 09:24
Wow. Hi, Bored of the Rings , It would be cool!
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th May 2018 05:12
The code example uses a C subroutine library FFTW. Are you looking to use this library in DBPro?
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 16th May 2018 05:45
If this is possible and is mandatory for the code example , then yes.
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th May 2018 06:49 Edited at: 16th May 2018 07:40
yes, it looks like you will definitely need to use the FFTW dll library. Whether that will work in DBPRo is another question.

[update-the good news is the Dlls load into DBPro ok-if I get time after work I'll carry on investigating the dll's and see if it's possible to use any of the functions. ]
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 16th May 2018 07:54
I understood you. Thank you very much for trying.
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th May 2018 08:59
Still looking into it. One of the functions doesn't exist in any of the 3 dlls according to dbpro command call exist ... will see what I can do but not sure it will work....
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 16th May 2018 21:33 Edited at: 16th May 2018 21:55
ok I had another look at the functions in the dlls and the function that I thought didn't exist, does exist after all. I'll keep stabbing away with this, hopefully have something to show in next few days.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others

Attachments

Login to view attachments
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 16th May 2018 21:58
It's a good news. Thank you for your time you spend to deal with this. I hope that you can also use this code.
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 17th May 2018 23:28 Edited at: 17th May 2018 23:31
looks like there is already a FFTW wrapper for DBPro, please find link here:

https://forum.thegamecreators.com/thread/193909

This will definitely help.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 18th May 2018 00:06
I'm ready to argue that I've already seen this library, I do not know why I did not remember about it. It really can help.
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th May 2018 00:22
yes I am looking forward to experimenting with this wrapper and seeing if I can put it to good use for my heightmap app.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
Mage
11
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: Canada
Posted: 3rd Jun 2018 01:13 Edited at: 4th Jun 2018 05:33
[Edit] Asked Bored an unrelated question.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 3rd Jun 2018 06:51 Edited at: 5th Jun 2018 07:02
[edit-unrelated to this post]
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 6th Jun 2018 23:32
Hello!
Did anyone activate the keys from Normalizator from the first post?
I ask because I did not notice the activations. You can take these keys for free.

@Bored ,did you have time to look at the code?
By the way, I wrote the code that extracts AOmap from normalmap (it's not perfect but it works). Let me know if you're interested.
I want to add three new functions to Normalizer: "LightMagick", "MiddleMagick" and "HiMagick". These functions will work as presets for one image using preset filter sets for all channels.
The secret to creativity is knowing how to hide your sources.
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 7th Jun 2018 06:52
@OldPman, I had a look at the code, and the example code that came with the FFTW plugin but not got far due to other committments. I'll see if I can find some time to carry on.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
revenant chaos
Valued Member
11
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 8th Jun 2018 16:01
Hi OldPMan,
I just used the first activation key (5VN8G-X3DYM-4FWCV). Thanks man, this is going to be very useful.
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 8th Jun 2018 23:23
Hi, revenant chaos.
Thank you for reporting the activation of the key.
I hope to see your best screenshot.
The secret to creativity is knowing how to hide your sources.
Derek Darkly
6
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 10th Jun 2018 00:45
Who else is pulling for this thread? Even just because OldPMan has a cool avatar? #MeToo
Send your parents to noisy sprite demo hell... enter the D-Zone
seppgirty
FPSC Reloaded Backer
8
Years of Service
User Offline
Joined: 3rd Jul 2009
Location: pittsburgh, pa.
Posted: 10th Jun 2018 21:18
I am.
gamer, lover, filmmaker
Bored of the Rings
13
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 11th Jun 2018 06:09
@OldPman- am looking at the code again today. If I get good results, will PM/email you the code.
BW
BOTR
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others
OldPMan
TGC Store Seller
9
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 11th Jun 2018 13:42
@BOTR , Hey. I hope you get.
The secret to creativity is knowing how to hide your sources.

Login to post a reply

Server time is: 2018-06-24 08:10:18
Your offset time is: 2018-06-24 08:10:18