nSprite 2  


Attention! 👉Starting November 2024, BlitzCoder.org will now be BlitzBasic.org.

 

Tweet blitz3d gui-libs frameworks toolbox
gosse

nSprite 2 is a big set of functions for Blitz3D to create 2D graphics using the capability and advantages of 3D cards. The command set is really similar to Blitz2D, making an easy syntax to learn and enabling easy conversion from 2D to 2D in 3D. It can be used anywhere, from making an entire 2D game or to enhance 3D graphics with such thing as HUDs.

Features

2D-in-3D single-surface efficient system, crisp and pixel-perfect images, real-time scaling and rotation, alpha and mask support, animation system, bitmap fonts system, particles system, lighting system, collision system.

Download: http://www.nuloen.com/downloads/nSprite2.zip

License: MIT

Blitz3D nSprite 2

Blitz3D nSprite 2
Blitz3D nSprite 2
Blitz3D nSprite 2

Blitz3D nSprite 2

markcwm commented:

Hi Ron,

the btmicro page states "THIS PRODUCT IS NOT AVAILABLE FOR PURCHASE" but you could email gosse, I bought a copy of nsprite2 which I can find if needed.

BlitzCoder commented:

That's awesome Mark! already emailed gosse so let's see how it goes..

markcwm commented:

Hi Ron,

actually I don't have a copy of nsprite2, I can only find the demo. I do have logger, nbmp, npoly and particleworks, all freeware by gosse.

BlitzCoder commented:

Ah, that's ok. still have no word though with gosse so we'll leave that as it is and probably make this eventually into a demo info thread only.

Feel free to post the other links whenever they are ready. Thanks!

  gosse commented:

Hey, sorry guys, I had to take down nuloen.com for legal reasons.
I just saw Ron's email from last year... I decided to drop in and I'll see what I can do with this thing.

BlitzCoder commented:

Hey, welcome to the forums gosse!

No worries and looking forward to it. cheers

BlitzCoder commented:

nSprite 2 is now FREE under MIT License!

Many thanks again to gosse for sharing this awesome framework!!

Post now updated with FULL download link!

tfdi commented:

Hi guys,

Sorry, but, where is the dll file to try this lib with blitz3d ? In the download link, there is not the dll.

BlitzCoder commented:

Hey tfdi, Welcome to the forums!

The library does not need and provide a DLL, you just put the decls file in userlib folder and you're good to go!

tfdi commented:

Hey,

I think you should read the manual ... :). You can find it in your Blitz3D install folder, sub folder userlibs, file UserLibs.txt, where you can read the following :

*New DLL interface spec
There is now a directory in the root blitzpath called 'userlibs'.
By adding DLLs and '.decls' files to this directory, you can extend blitz's command set.
DLLs contain actually library code, while .decls files contain 'declarations' to be added to the
base command set. These declarations describe the functions contained in the Dll.

Format of decls files
Decls files should always start with a '.lib' directive, followed by the quoted name of the DLL to be
loaded, eg:
.lib "mylib.dll"*

Of course, you need to have a dll. In the demo, it can be included in the exe program, but to try to code something, you should have the dll, we don't have the choice.

This is why i asked ... :s

Unfortunatly, we don't have the link .. :( ..

@Gosse:If you read this, please, can you put a link for the dll ? Let's try to use it :)

BlitzCoder commented:

Hey tfdi, have you tried the demo? it should work. I already tested it and it should be good to go.

Of course, you need to have a dll. In the demo, it can be included in the exe program, but to try to code something, you should have the dll, we don't have the choice.

Looks like in this case, it does require a DLL before, but now it is not needed anymore because it is now opensource. gosse already mentioned that there were changes for this opensource release.

You can see the compiled exe runs fine without the DLL. cheers

Edit: Ok I see that there are extra functions, but the 2 demo source are only compiled.

gosse did mention something to me about texturebuffer and delta timing issues, perhaps this DLL part is having it.

btw, already emailed goss about this missing DLL..

gosse commented:

nSprite 2 doesn't use a DLL. It only uses a decl file for IDE purpose. It's all Blitz3D native code, is there any issue compiling/running it?

BlitzCoder commented:

nSprite 2 doesn't use a DLL. It only uses a decl file for IDE purpose. It's all Blitz3D native code, is there any issue compiling/running it?

Great, that's what I thought at first.

So all the functions are all in the BB includes after all

tfdi commented:

Oh, sorry guys, i had miss understood. The habit to use some dll, and the habit to try some blitz extension with it.

I didn't have a look to the exemples, and i didn't though it was in pure blitz.

Thank you for enlightening me

BlitzCoder commented:

No worries tfdi and feel free to post or create another thread if you have any more questions or concerns. Happy coding!

Doggie commented:

every example returns "not enough parameters" then exits

BlitzCoder commented:

every example returns "not enough parameters" then exits

Hey Doggie, have you tried the Demo.bb file? as the others are only include.

Doggie commented:

illegal type conversion
objCard = nS_Convertentity(pvtCard)

BlitzCoder commented:

It should be working with v1.106 or even the newest MSVC 2017 (v1.108). Not sure why you're getting this error perhaps try it on a clean install.

Doggie commented:

Oh. I was running Demo_3D running Demo works fine. Just kind of trying a little of this and a little of that
to get inspired to code something...')

Reply To Topic (minimum 10 characters)

Please log in to reply