Page 1 of 1

Canvas/PNG Importing

PostPosted: Sun Jun 14, 2015 2:27 pm
by Zeropainter
Hello dear Taron & community, did you know, whta kind of png I did need, if I want to use it in Verve as a canvas? for example I have a black/white png file with a wall bricket, but I can hit ctrl+p and hit again, but nothing is happing, if I paint a canvas layer in verve .. thats running ok, it's just about canvas importing ;)

Re: Canvas/PNG Importing

PostPosted: Sun Jun 14, 2015 4:11 pm
by Taron
That's because imports do not provide material. The only provide color and the canvas gets filled with an even 1.0 amount of material.
I still have to write the 16bit (+) import in order to allow a proper import of canvas textures. :shrug: ...don't know why that is so hard, but it is. :oops:

Re: Canvas/PNG Importing

PostPosted: Mon Jun 15, 2015 4:58 pm
by Stavros
Great to see this question as I was just trying to do this a few days ago….I also was surprised it did not work as expected.
Is it possible to map the brightness value of imported images to material amount so we can use them as canvas textures with control-p ?

s

Re: Canvas/PNG Importing

PostPosted: Mon Jun 15, 2015 5:04 pm
by Taron
It's ugly. You will not like it, believe me!
I could try to write some sort of blur to get finer values, but without it you will sadly agree with me, trust me. :shrug:
Thing is, even 16bit isn't ideal for that sort of thing, because it ain't just bumpmapping, which would be ugly, but it's how it interacts with the fluids. Seeing pixels is never nice, but this sort of involuntary distribution of fluids will most certainly be unpleasant.
I have to figure out that import.

Re: Canvas/PNG Importing

PostPosted: Fri Jun 19, 2015 2:28 am
by plankton
I apologize if it's the wrong place... Have you considered supporting Open EXR (32bit)?

Re: Canvas/PNG Importing

PostPosted: Sun Jun 21, 2015 9:03 am
by Taron
Oh, I consider all formats, but I need to port them over to BlitzMax as it stands and that's a little...tricky here and there. I still have to figure out how I might actually just connect datablocks to C++ (or C) compiles, which are also possible through Bmax. I've had some trouble with that, which is why I had to write my own export routines for 16bit png, for example.
There is a freeimage library, but it's gigantic, literally 4 times the size of entire Verve, and it's full of redundancies...so...I don't want to use that. :P

But, yeah, I'll have a look at EXR, also because I kinda like the format. :) :geek:

Re: Canvas/PNG Importing

PostPosted: Tue Jun 23, 2015 3:02 am
by plankton
Thank you for your answer and great work. :beer: enjoying it.
Yes i like EXR too, it's great for 'raw' (lossless) work. Wouldn't mind if it was only extra format supported (can edit/tranlate it further in almost any other imaging app).
For now i only use vrv (to continue where finished) & png16 (to use with krita & blender). Slowly developing in skill & style :oops:
Have a great time doing what you love.