Search found 10 matches

by Johny8
Sun Feb 01, 2015 10:35 pm
Forum: Feature Requests and Wishlists
Topic: Documentation Shader
Replies: 2
Views: 1605

Documentation Shader

A wish for PureBasic is an expert in Shaders create the documentation to initiate novice users like me in the world of Shaders.

I am new at this and truth rather than attempt not find a starting point that is really easy :?
by Johny8
Sun Feb 01, 2015 12:47 am
Forum: 3D Programming
Topic: Help A simpler shader
Replies: 4
Views: 4699

Re: Help A simpler shader

Usually when an object is white that means it failed to load the script or shader.
The easiest way to debug the problem is look at your Ogre log. Which is created at your applications root directory when you use InitEngine3D() with the #PB_Engine3D_DebugLog flag.

As to why your shader failed I'm ...
by Johny8
Sat Jan 31, 2015 7:47 pm
Forum: 3D Programming
Topic: Help A simpler shader
Replies: 4
Views: 4699

Help A simpler shader

Hi I'm trying to learn writing shaders, but I think I'm doing something wrong since continued seeing a white cube.



// Material Box
vertex_program PlainTexture_VS cg
{

source GameObjStandard.cg
entry_point main_plain_texture_vp
profiles vs_1_1


default_params
{

param_name_auto ...
by Johny8
Sat Jan 31, 2015 7:41 pm
Forum: Coding Questions
Topic: Coordinates in the Z axis
Replies: 2
Views: 1249

Re: Coordinates in the Z axis

What example code were you looking at? I not entirely sure of the problem, but some code might help clear things up for me.
Also since Purebasic 5.1 the "Locate" commands have all been replaced by the #PB_Absolute flag in the Move commands.

One more thing for future reference you may want to post ...
by Johny8
Sat Jan 31, 2015 2:53 am
Forum: Coding Questions
Topic: Coordinates in the Z axis
Replies: 2
Views: 1249

Coordinates in the Z axis

I've been looking at some examples where "Locate" was used in some commands for positioning elements in the 3D scene, these examples to put a positive value on any item, for example the camera was moving forward now to put positive numbers the move command, the object goes backwards.

Am I missing ...
by Johny8
Mon Jan 26, 2015 6:41 pm
Forum: Coding Questions
Topic: I do not work GetScriptMaterial
Replies: 4
Views: 2122

Re: I do not work GetScriptMaterial

Samuel wrote:The Ogre wiki has a section on shaders that might interest you.
http://www.ogre3d.org/tikiwiki/shaders

Thanks You :)
by Johny8
Mon Jan 26, 2015 5:13 am
Forum: Coding Questions
Topic: I do not work GetScriptMaterial
Replies: 4
Views: 2122

Re: I do not work GetScriptMaterial

Thanks You :D
Now I have something to put on my website tomorrow speak sombre materials.

My website is just a hobby, I am learning what I learn PureBasic and put it on the site, it is a way of learning.

Another question, you know of any guide to get started in the Shaders? CG, GLS, HGLS


http ...
by Johny8
Mon Jan 26, 2015 1:22 am
Forum: Coding Questions
Topic: I do not work GetScriptMaterial
Replies: 4
Views: 2122

I do not work GetScriptMaterial

I'm learning process with PureBasic, but not that I'm doing wrong.

Any suggestions.


[19:23:27] The Program was killed.
[19:23:30] Waiting for executable to start...
[19:23:30] Executable type: Windows - x86 (32bit, Unicode)
[19:23:30] Executable started.
[19:23:31] [ERROR] Pawn.pb (Line: 48)
[19 ...
by Johny8
Sun Jan 25, 2015 1:44 pm
Forum: Coding Questions
Topic: Hello, package of resources?
Replies: 3
Views: 2015

Re: Hello, package of resources?

Consider using an installer if the game is for WindowsOS. The installer used by Fantaisie for PB is Inno Setup: http://www.jrsoftware.org/isinfo.php - it's free.

You can include your resources inside your app, using IncludeBinary() for example:
http://www.purebasic.com/documentation/reference ...
by Johny8
Sun Jan 25, 2015 1:56 am
Forum: Coding Questions
Topic: Hello, package of resources?
Replies: 3
Views: 2015

Hello, package of resources?

I am fairly new to PureBasic, I used Blitz3D and I wish my options to package the resources of a video game, meshes, textures, sounds etc.

I appreciate your help.