I see a different result on this code. A sprite on the top left is showing fine with default D3D subsystem, and as blank white w/o texture when OpenGL subsystem is specified. Can anyone confirm that?
#CameraSpeed = 0.04
Enumeration
#MainWindow
EndEnumeration
Define.f KeyX, KeyY, MouseX, MouseY ...
Search found 51 matches
- Wed Jan 23, 2019 12:48 pm
- Forum: 3D Programming
- Topic: Blank sprite in OpenGL full screen
- Replies: 1
- Views: 1824
- Thu Dec 27, 2018 1:28 pm
- Forum: Coding Questions
- Topic: OpenScreen() on Dual Monitors?
- Replies: 2
- Views: 843
OpenScreen() on Dual Monitors?
Is it possible to open two screens to place each on both desktops? Or to be more specific, I have some 3d object rotating in full screen on primary monitor, the one on the right is blank at this time. I'd like to "clone" the original OpenScreen() to have both monitor displaying the rotating object ...
- Fri Feb 23, 2018 12:54 pm
- Forum: 3D Programming
- Topic: Text3D width & height
- Replies: 0
- Views: 1586
Text3D width & height
How would I know the dimention (width and height) of the newly created Text3D in world units? Is there something like TextWidth()/TextHeight() but for 3d text stuff?
- Wed Dec 13, 2017 11:38 am
- Forum: 3D Programming
- Topic: Coloring of entities not possible?
- Replies: 6
- Views: 4387
Re: Coloring of entities not possible?
EntityMaterial approach works, but it is far from perfect solution. Imagine, you have hundreds of entities on the scene, each has its own material. It would be a headache to manage their transparency with EntityMaterial. Let's vote for EntityAlpha()! 

- Wed Dec 13, 2017 11:26 am
- Forum: Feature Requests and Wishlists
- Topic: EntityPick, EntityAlpha, EntityOrder
- Replies: 1
- Views: 1796
Re: EntityPick, EntityAlpha, EntityOrder
+1 for EntityAlpha(entity.l, alpha.f)! It would be nice to have such function in the 3D command-set. It's a pretty commonly used function in many other 3D engines. I wonder why OGRE/PB still doesn't have it.
- Wed Dec 13, 2017 11:20 am
- Forum: 3D Programming
- Topic: Wierd Text3D
- Replies: 2
- Views: 2180
Re: Wierd Text3D
Comtois, thanks for clarification!
- Thu Dec 07, 2017 12:14 pm
- Forum: 3D Programming
- Topic: Wierd Text3D
- Replies: 2
- Views: 2180
Wierd Text3D
Playing with a Text3D.pb piece of code from documentation I found its strange behavior. First of all, If I remove all font definitions from proper-definitions.fontdef and leave StarWars font only, PB's debugger throws "The specified #Text3D is not initialised." error. It seems StarWars font doesn't ...
- Tue Nov 28, 2017 10:06 am
- Forum: 3D Programming
- Topic: Semi-transparent textures
- Replies: 3
- Views: 2404
Re: Semi-transparent textures
Got it. Thanks guys!
- Sun Nov 26, 2017 1:21 pm
- Forum: 3D Programming
- Topic: Semi-transparent textures
- Replies: 3
- Views: 2404
Semi-transparent textures
Why the loaded textures have a transparency, but the custom drawn ones don't? See the example, comment/uncomment the appropriate parts of the code where the texture is loaded/created:
Enumeration
#MainWindow
EndEnumeration
InitEngine3D()
Add3DArchive(#PB_Compiler_Home + "examples/3d/Data ...
Enumeration
#MainWindow
EndEnumeration
InitEngine3D()
Add3DArchive(#PB_Compiler_Home + "examples/3d/Data ...
- Sun Nov 19, 2017 1:11 pm
- Forum: 3D Programming
- Topic: Pixel-perfect background image in 3D
- Replies: 5
- Views: 3002
Re: Pixel-perfect background image in 3D
Thanks for suggestions!
applePi, the example is great, but a skybox is not quite what I need, the background should stay intact and has the best possible image quality.
Bitblazer, good point, didn't try this approach...
DarkDragon, can't say. Shaders sound a bit complicated to me so far, an ...
applePi, the example is great, but a skybox is not quite what I need, the background should stay intact and has the best possible image quality.
Bitblazer, good point, didn't try this approach...
DarkDragon, can't say. Shaders sound a bit complicated to me so far, an ...
- Sat Nov 18, 2017 11:49 am
- Forum: 3D Programming
- Topic: Pixel-perfect background image in 3D
- Replies: 5
- Views: 3002
Pixel-perfect background image in 3D
I used to put a simple sprite with exact screen dimension on background to do that. Now I need to have some 3d stuff added at the scene. Sprites still work but AFTER the 3d stuff is rendered. Is it possible to put a sprite behind the 3d scene? If not, is seems the solution would be to make a plane ...
- Tue Apr 11, 2017 12:11 pm
- Forum: Coding Questions
- Topic: [SOLVED] Select and load specific image from icon
- Replies: 3
- Views: 1775
Re: Select and load specific image from icon
Thanks guys for pointing me out. I've managed it this way:
#ico_size = 16
#ico_bpp = 32
#ico_file = "c:\anyicon.ico"
Structure ICONDIRENTRY
bWidth.a ; Width, in pixels, of the image
bHeight.a ; Height, in pixels, of the image
bColorCount.a ; Number of colors in image (0 if >=8bpp)
bReserved ...
#ico_size = 16
#ico_bpp = 32
#ico_file = "c:\anyicon.ico"
Structure ICONDIRENTRY
bWidth.a ; Width, in pixels, of the image
bHeight.a ; Height, in pixels, of the image
bColorCount.a ; Number of colors in image (0 if >=8bpp)
bReserved ...
- Tue Apr 04, 2017 10:26 am
- Forum: Coding Questions
- Topic: [SOLVED] Select and load specific image from icon
- Replies: 3
- Views: 1775
[SOLVED] Select and load specific image from icon
Hi,
As you know the icon file can contain several images of different sizes inside. Is it possible to load a specific image from the icon in PB?
As you know the icon file can contain several images of different sizes inside. Is it possible to load a specific image from the icon in PB?
- Tue Mar 04, 2014 10:38 pm
- Forum: Coding Questions
- Topic: PB 5.21 FreeMemory() error
- Replies: 3
- Views: 1066
PB 5.21 FreeMemory() error
Hi, getting ima error on FreeMemory(*buffer) in this piece of code:
str.s = "0123456789012345678901234567890123456789"
size.l = StringByteLength(str, #PB_UTF8)
*buffer = AllocateMemory(size)
If *buffer
PokeS(*buffer, str, size, #PB_UTF8)
str = MD5Fingerprint(*buffer, size)
Debug str ...
str.s = "0123456789012345678901234567890123456789"
size.l = StringByteLength(str, #PB_UTF8)
*buffer = AllocateMemory(size)
If *buffer
PokeS(*buffer, str, size, #PB_UTF8)
str = MD5Fingerprint(*buffer, size)
Debug str ...
- Sun May 26, 2013 11:55 am
- Forum: Coding Questions
- Topic: Plug-ins for Photoshop in PB?
- Replies: 1
- Views: 629
Plug-ins for Photoshop in PB?
Hi,
Did someone make plug-ins (image filters, file filters) for Adobe Photoshop, Illustrator, Premier... and similar software using PureBasic?
Is it ever possible? Any tips, thoughts, personal experience and advises are welcome! Don't know how to get started and is this possible with PB.
Did someone make plug-ins (image filters, file filters) for Adobe Photoshop, Illustrator, Premier... and similar software using PureBasic?
Is it ever possible? Any tips, thoughts, personal experience and advises are welcome! Don't know how to get started and is this possible with PB.