Hi Samuel,
Thanks for the answer. I think you can do it by
RemoveMaterialLayer(#ShaderMaterial1)
AddMaterialLayer(#ShaderMaterial1, TextureID(TextureBlue), #PB_Material_Replace)
which seems encouraging.. I think removing it first must unregister the Texture with material script...
I'll ...
Search found 32 matches
- Mon Sep 11, 2017 1:52 pm
- Forum: 3D Programming
- Topic: Transparent Black Pixel Shader
- Replies: 4
- Views: 4986
- Fri Sep 08, 2017 6:28 pm
- Forum: 3D Programming
- Topic: Transparent Black Pixel Shader
- Replies: 4
- Views: 4986
Re: Transparent Black Pixel Shader
I realise I am resurrecting an old thread.
@Samuel:
How would you go around replacing the texture in the shader 'on the fly'? I've tried
LoadTexture(0, "Image03.png")
AddMaterialLayer(#ShaderMaterial1, TextureID(0), #PB_Material_Replace, 0)
but it doesn't seem to work? Is there a simple ...
@Samuel:
How would you go around replacing the texture in the shader 'on the fly'? I've tried
LoadTexture(0, "Image03.png")
AddMaterialLayer(#ShaderMaterial1, TextureID(0), #PB_Material_Replace, 0)
but it doesn't seem to work? Is there a simple ...
- Tue Apr 18, 2017 11:37 pm
- Forum: Coding Questions
- Topic: "Unstable Connections" or "Particle Push"
- Replies: 2
- Views: 1181
Re: "Unstable Connections" or "Particle Push"
Thank you! Ninga reply!
I'll post updated code in a bit, if anyone stumbles across this again.
Michael
later>... Ok, I have updated the first post with the correction. A lot easier than scrolling through a thread for the correct code. Ty again.
I'll post updated code in a bit, if anyone stumbles across this again.
Michael
later>... Ok, I have updated the first post with the correction. A lot easier than scrolling through a thread for the correct code. Ty again.
- Tue Apr 18, 2017 11:22 pm
- Forum: Coding Questions
- Topic: "Unstable Connections" or "Particle Push"
- Replies: 2
- Views: 1181
"Unstable Connections" or "Particle Push"
Hi all,
I've translated a lovely little program to PureBasic.
Solved: (see second post): However, I get flickering when either the particle count is too high or low . I've set the #PB_Screen_WaitSynchronization flag in the OpenWindowedScreen. Do others get this problem? If so do they have an ...
I've translated a lovely little program to PureBasic.
Solved: (see second post): However, I get flickering when either the particle count is too high or low . I've set the #PB_Screen_WaitSynchronization flag in the OpenWindowedScreen. Do others get this problem? If so do they have an ...
- Fri Nov 11, 2016 1:47 am
- Forum: Off Topic
- Topic: Mobile internet usage surpasses desktop usage
- Replies: 45
- Views: 17426
Re: Mobile internet usage surpasses desktop usage
OK, I accept
Let me come back to you on this one.
Michael
. I'm not going to pull the rip-cord of life yet, but sure, the stats are alarming.One thing is clear, this trend is not our friend.
Let me come back to you on this one.
Michael
- Thu Nov 10, 2016 10:04 pm
- Forum: Off Topic
- Topic: Mobile internet usage surpasses desktop usage
- Replies: 45
- Views: 17426
Re: Mobile internet usage surpasses desktop usage
Back in 1900 cancer in children was practically unheard of, extremely rare, as in non-existent.
Erm, that's probably because most died of infectious diseases Measles, mumps, rubella, influenza, etc, etc, etc, etc, etc. The infant mortality rate was huge , not to mention trauma (war, stampled by ...
Erm, that's probably because most died of infectious diseases Measles, mumps, rubella, influenza, etc, etc, etc, etc, etc. The infant mortality rate was huge , not to mention trauma (war, stampled by ...
- Thu Nov 10, 2016 9:24 pm
- Forum: Announcement
- Topic: PurePEDIA: An online collaborative project for PureBasic
- Replies: 8
- Views: 5685
Re: PurePEDIA: An online collaborative project for PureBasic
Hi,
Just to throw my oar in... I am a big fan of this idea. I like the idea of an 'official' wiki. While programming another language we had a wiki and it was a great help and I wrote a few articles myself. It is a great place to go to see the 'current zeitgeist' of the how things are done in the ...
Just to throw my oar in... I am a big fan of this idea. I like the idea of an 'official' wiki. While programming another language we had a wiki and it was a great help and I wrote a few articles myself. It is a great place to go to see the 'current zeitgeist' of the how things are done in the ...
- Thu Nov 03, 2016 5:40 pm
- Forum: General Discussion
- Topic: Strange attractors
- Replies: 4
- Views: 3418
Re: Strange attractors
I really liked the idea of this program so I have updated it for PB 5.50 (as far as I see it works here). I just had to change the Billboard creation as I've found it won't create a billboard with an integer number - it has to be PB_Any
Anyway, enjoy the pretty patterns..
; Author: Kelebrindae ...
Anyway, enjoy the pretty patterns..
; Author: Kelebrindae ...
- Mon Oct 31, 2016 7:35 pm
- Forum: Coding Questions
- Topic: Converting string to float
- Replies: 8
- Views: 3181
Re: Converting string to float
It doesn't convert exactly because some decimal numbers can't be represented in binary exactly eg 0.1 expands to 0.000110011001100110011 recurring..
http://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/
I presume as 0.6 is 0.1 * 6 it is why you get the 0.60000002384186 ...
http://www.exploringbinary.com/why-0-point-1-does-not-exist-in-floating-point/
I presume as 0.6 is 0.1 * 6 it is why you get the 0.60000002384186 ...
- Sat Oct 29, 2016 1:01 pm
- Forum: 3D Programming
- Topic: Billboards disappearing
- Replies: 5
- Views: 3503
Re: Billboards disappearing
Wow! I can't complain about the support PureBasic offers! Exemplary. Thank you.Comtois wrote:ok your code work with the fix. done for next release,
I'll use the temporary fix of MoveBillboardGroup() until the next release.
Michael
- Sat Oct 29, 2016 12:58 pm
- Forum: 3D Programming
- Topic: Billboards disappearing
- Replies: 5
- Views: 3503
Re: Billboards disappearing
I will give a try to this (as soon as i get time)
http://ogre3d.org/forums/viewtopic.php?f=2&t=58333
Thanks Comtois.
It seems like it might be solved with adding a
MoveBillboardGroup(myBillboardgroup, 0, 0, 0)
after the addBillboard command. Which may just force an update to the group ...
http://ogre3d.org/forums/viewtopic.php?f=2&t=58333
Thanks Comtois.
It seems like it might be solved with adding a
MoveBillboardGroup(myBillboardgroup, 0, 0, 0)
after the addBillboard command. Which may just force an update to the group ...
- Sat Oct 29, 2016 12:16 pm
- Forum: General Discussion
- Topic: Strange attractors
- Replies: 4
- Views: 3418
Re: Strange attractors
Hi, I got here after trying to diagnose what is wrong with my program! This looks great but it needs updating as the AddBillboard() command has changed. I've also tried downloading your screensaver but it didn't work on Windows10 - I can see the dll has been downloaded but some how I can't get the ...
- Sat Oct 29, 2016 10:39 am
- Forum: 3D Programming
- Topic: Billboards disappearing
- Replies: 5
- Views: 3503
Re: Billboards disappearing
It seems it may be due to the AddBillboard() command. The code below just adds a billboard to a group at a random interval but the same things happens. If you use WASD and the mouse to fly the right end of the group off the screen the billboards will all suddenly disappear.
Anyone have any thoughts ...
Anyone have any thoughts ...
- Sat Oct 29, 2016 12:10 am
- Forum: 3D Programming
- Topic: Billboards disappearing
- Replies: 5
- Views: 3503
Billboards disappearing
Hi all,
I am trying to simulate a queue and I was going to use billboard groups in a 3D environment to show where people are...it is part of a bigger idea. However, I have a bug where it seems if I move the BillboardGroups' position off the screen all the billboards of that group disappear ...
I am trying to simulate a queue and I was going to use billboard groups in a 3D environment to show where people are...it is part of a bigger idea. However, I have a bug where it seems if I move the BillboardGroups' position off the screen all the billboards of that group disappear ...
- Fri Oct 28, 2016 9:56 pm
- Forum: General Discussion
- Topic: Copying code in Windows Edge
- Replies: 2
- Views: 1694
Re: Copying code in Windows Edge
Well, yes, I did that but the problem persists. When I copy from the website to the editor I get lots of 'xA0' (if I 'reveal' them with notepad++) pasted in and it really doesn't like it. It always throws an syntax error.
I'm a bit perplexed now..
Michael
I'm a bit perplexed now..
Michael