CreateTexture

Started by JBR, September 18, 2020, 00:42:26

Previous topic - Next topic

JBR

Hi, trying to make a texture which looks blocky but it seems CreateTexture has no effect on mipmapping.

I've cleartexturefilters at the start.

When I texture the mesh it's all smooth and I want blocky!

Any ideas?

Jim

col

Hiya,

That was never implemented in the original Blitz3D.

However you're in luck as there's a version ( and source ) of Blitz3D at my repo which will let you do that
It's called 'point sampling' amd it's been added to the texture flags ( use flag value 1024, it's in the docs contained ). The update was pulled into the 'official' repo by Mr Sibley at his github, but I'm not sure if there is an exe there to install.

That will give you unfiltered 'blocky' textures.

https://github.com/davecamp/blitz3d_msvc2017/releases/tag/v1.110
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

JBR

Thanks col, working great! Jim.

JBR

Got a problem,

It always starts with a very small window in top left of screen with debug enabled every time.

Also, it does not remember the recent files.

Jim.

col

#4
Thanks for the feedback.

QuoteIt always starts with a very small window in top left of screen with debug enabled every time.

As usual I don't get this :D so I'm trying to think what this could be.
Could it be the 'Blitz Debugger' window? Are you using multiple monitors? What OS are you using? I've tried with Win8.1 and Win10. Is there a chance of a little pic to show the issue?

This version is pretty much the official repo cloned with the extra flag for the texture filtering added in.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

STEVIE G

Col, does that version include dplay removed and fmod still baked in?

JBR

Hi Col,

Not much too see just always opens as a 640 by 480 with debug checked.

I think it's an editor thing. Maybe some file missing to record recent files, etc.

The editor behaves slightly different.

e.g. When you press return at the end of a line which is 'tabbed one' it goes to the very start of the next line rather than 'tabbed one'.

Nothing to worry about but not normal - the actual language works fine.

I'll try it on my main PC. Using windows 10 on both.

Jim.

JBR

#7
Sorted somewhat.

The blitzide.prefs file was not being stored in the cfg folder.

Still have strange editor behaviour.

If I double click on a line the whole code is highlighted. Don't know if this can be fixed using the .prefs file?

Jim.

col

Quote
does that version include dplay removed and fmod still baked in?
Yes and yes.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."


peteswansen

nice to see Remi posting again :)

hosch

Quote from: RemiD on November 28, 2020, 21:24:19
https://www.syntaxbomb.com/index.php/topic,3892.0.html

Thats exactly the answer I had in mind, too. You helped me out a lot with your posts when I started with Blitz, RemiD, so let me take this opportunity to thank you for your contributions  :)

RemiD

glad that some people apreciate these code examples / explanations. ;D

when i started to code, in 2009-2010, i was afraid to have my code stolen (and my code was rather bad at the time :-[), but when i had a good understanding, i wanted more people to be interested in Blitz3d and to use it.
so this is my way to give back to the community, which helped me a lot to learn / understand and progress.

have fun ;)