Search found 27 matches
- Fri Mar 24, 2023 1:36 pm
- Forum: Coding Questions
- Topic: Creating a buffer for image manipulation
- Replies: 10
- Views: 1620
Re: Creating a buffer for image manipulation
On every example given i receive a memory access violation error when i actually load any image and try to transform it, even the MirorY example resulted in error
- Fri Mar 24, 2023 8:26 am
- Forum: Coding Questions
- Topic: Creating a buffer for image manipulation
- Replies: 10
- Views: 1620
Re: Creating a buffer for image manipulation
@jamirokwai.Thankyou, gives me more of an idea how to use it
- Thu Mar 23, 2023 3:49 pm
- Forum: Coding Questions
- Topic: Creating a buffer for image manipulation
- Replies: 10
- Views: 1620
Re: Creating a buffer for image manipulation
Thanks Fred I changed it to use plot and point
; Load an image into a memory buffer
LoadImage(0, "image.bmp")
imageWidth = ImageWidth(0)
imageHeight = ImageHeight(0)
imageBufferSize = imageWidth * imageHeight * 4 ; 4 bytes per pixel (RGBA)
imageBuffer.l = AllocateMemory(imageBufferSize)
CopyImage ...
; Load an image into a memory buffer
LoadImage(0, "image.bmp")
imageWidth = ImageWidth(0)
imageHeight = ImageHeight(0)
imageBufferSize = imageWidth * imageHeight * 4 ; 4 bytes per pixel (RGBA)
imageBuffer.l = AllocateMemory(imageBufferSize)
CopyImage ...
- Thu Mar 23, 2023 3:30 pm
- Forum: Coding Questions
- Topic: Help converting from Visual Basic
- Replies: 39
- Views: 11226
Re: Help converting from Visual Basic
Function PasswordHash()
;Declarations
Protected strInputString.s, strCode.s
Protected intNameLength.i, intRnd.i
strInputString = "abcdef0123456789" ;Characters to choose from to generate random string
intNameLength = 16 ;Define length of random string
Randomize()
;Generate the random ...
;Declarations
Protected strInputString.s, strCode.s
Protected intNameLength.i, intRnd.i
strInputString = "abcdef0123456789" ;Characters to choose from to generate random string
intNameLength = 16 ;Define length of random string
Randomize()
;Generate the random ...
- Thu Mar 23, 2023 2:32 pm
- Forum: Coding Questions
- Topic: Creating a buffer for image manipulation
- Replies: 10
- Views: 1620
Re: Creating a buffer for image manipulation
I used DrawingBuffer at the end, but wasn't entirely sure if I used it correctly
- Thu Mar 23, 2023 2:25 pm
- Forum: Coding Questions
- Topic: Creating a buffer for image manipulation
- Replies: 10
- Views: 1620
Creating a buffer for image manipulation
Could someone put me on the right path, I'm trying to use a buffer to store an image and then perform some manipulations, and then display the altered image
Unfortunately it's not working correctly I'm pretty sure drawingcolour and pixelcolour are not used in purebasic, but the rest of the code ...
Unfortunately it's not working correctly I'm pretty sure drawingcolour and pixelcolour are not used in purebasic, but the rest of the code ...
- Fri May 21, 2021 3:53 pm
- Forum: Coding Questions
- Topic: A Challenge to convert this
- Replies: 2
- Views: 1629
Re: A Challenge to convert this
Nice job JHPJHP. A perfect translation, and the same place I got the source file from. :P
My question is how to render it only after the flames have initialised and are burning? I suppose render it to back buffer and then flip the buffer's to display the fire in full force. Love the extra effects ...
My question is how to render it only after the flames have initialised and are burning? I suppose render it to back buffer and then flip the buffer's to display the fire in full force. Love the extra effects ...
- Wed May 19, 2021 6:07 am
- Forum: Tricks 'n' Tips
- Topic: An Old school Demo effect
- Replies: 0
- Views: 1017
An Old school Demo effect
After learning about the old school tunnel effect from the legend Vain, I decided to take it to completely new place
Please enjoy this old school Demo effect. Running on5.7 and 5.4
You might notice ch0_state and it's counterpart
, they were connected to vu channels for interactive variance, amazing ...
Please enjoy this old school Demo effect. Running on5.7 and 5.4
You might notice ch0_state and it's counterpart
, they were connected to vu channels for interactive variance, amazing ...
- Wed May 19, 2021 1:14 am
- Forum: Coding Questions
- Topic: A Challenge to convert this
- Replies: 2
- Views: 1629
A Challenge to convert this
The challenge is to convert this Code into purebasic Using only Draw and Plot
What do you get? You get to see fire
//define the width and height of the screen and the buffers
const int screenWidth = 640;
const int screenHeight = 128;
// Y-coordinate first because we use horizontal scanlines ...
What do you get? You get to see fire
//define the width and height of the screen and the buffers
const int screenWidth = 640;
const int screenHeight = 128;
// Y-coordinate first because we use horizontal scanlines ...
- Sat May 15, 2021 1:45 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Library] SPP (SimplePixelProc) - GFX library [Win x64/x86]
- Replies: 22
- Views: 15037
Re: [Library] SPP (SimplePixelProc) - GFX library [Win x64/x86]
Wonderful :D , Can we use this with other screen-outputs ?
Can i renter images or sprites over the top? Or is this a special window that cannot have anything draw over it?
Also how would i go about converting from shadertoy to SPP
// Tweak #2 of sben's 'Flow of cells' (https://www.shadertoy.com ...
Can i renter images or sprites over the top? Or is this a special window that cannot have anything draw over it?
Also how would i go about converting from shadertoy to SPP
// Tweak #2 of sben's 'Flow of cells' (https://www.shadertoy.com ...
- Thu Mar 14, 2019 12:39 pm
- Forum: Coding Questions
- Topic: GLSL shaders not displaying with Inter HD graphic`s?
- Replies: 0
- Views: 969
GLSL shaders not displaying with Inter HD graphic`s?
First off the GLSL part of the Not my code, credit goes to pjay
This works fine on Nvidia GPU but doest render shader`s using Intel HD gpu. Yet im able to use shader online and render fine. And Intel HD supports this. Could Anyone with Intel HD gpu look at it and tell me what im missing?
Ive set sub ...
This works fine on Nvidia GPU but doest render shader`s using Intel HD gpu. Yet im able to use shader online and render fine. And Intel HD supports this. Could Anyone with Intel HD gpu look at it and tell me what im missing?
Ive set sub ...
- Thu May 04, 2017 7:08 am
- Forum: Coding Questions
- Topic: [SOLVED] pass information to GLSL shader`s
- Replies: 0
- Views: 1547
[SOLVED] pass information to GLSL shader`s
Just wondering if anyone knows how to make changes in real time to fragments shaders?
For example if i wanted to change "COLOR_MASKS[0] = vec3( 0.20, 0.30, 1.0 );" to "COLOR_MASKS[0] = vec3( 1.0, 0.0, 1.0 );" though my main program
I could edit the nurbs. txt in real time, but dont believe this is ...
For example if i wanted to change "COLOR_MASKS[0] = vec3( 0.20, 0.30, 1.0 );" to "COLOR_MASKS[0] = vec3( 1.0, 0.0, 1.0 );" though my main program
I could edit the nurbs. txt in real time, but dont believe this is ...
- Mon Apr 24, 2017 4:50 am
- Forum: Tricks 'n' Tips
- Topic: OpenGLGadget - drawing sprite (perfect pixel)
- Replies: 18
- Views: 9370
- Mon Apr 24, 2017 12:10 am
- Forum: Tricks 'n' Tips
- Topic: OpenGLGadget - drawing sprite (perfect pixel)
- Replies: 18
- Views: 9370
- Sun Apr 23, 2017 4:02 pm
- Forum: Tricks 'n' Tips
- Topic: OpenGLGadget - drawing sprite (perfect pixel)
- Replies: 18
- Views: 9370