Combining 2 wrappers into 1

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Post by nespa »

Tell me , pls, how can I post an image. I used Img tag, but the Image URL doesn't works.
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

like this:

Code: Select all

[URL=myimg][IMG]myimg[/IMG][/URL]
imageshack gives you forum links automatically, you should try that.
Working on game: Marrbles (Currently stopped).
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Post by nespa »

Suppose, I have an image like that :

"c:\impreza_GLSLshader.JPG"

How can I post it here?
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

nespa wrote:Suppose, I have an image like that :

"c:\impreza_GLSLshader.JPG"

How can I post it here?
Hm, go to http://imageshack.us/, select your file, press upload, wait for it to upload, then search for a text box that is named Forum code, copy that and paste it here.
Working on game: Marrbles (Currently stopped).
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Post by nespa »

many thanks to You !
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Post by nespa »

Image
Last edited by nespa on Wed Mar 02, 2011 8:05 am, edited 3 times in total.
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

You should have used simple forum code instead of thumbnail, also I think you pasted only portion of it as now theres no link to original photo.
Working on game: Marrbles (Currently stopped).
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Post by nespa »

See at Graphics-Images.bas example, replace

Image(.................) with ImageWithAlpha(..............,1)
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

nespa wrote:See at Graphics-Images.bas example, replace

Image(.................) with ImageWithAlpha(..............,1)

If I do that I get 5 errors with: Argument count mismatch, found ')' in 'ImageWithAlpha(......)'
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Post by nespa »

add the 1 value as argument, beside to the others arguments:

replace :
Image(tex01,372,280)

with:
ImageWithAlpha(tex01,372,280,1)



You have 5 lines like that, the all of them must be replaced.
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

nespa wrote:add the 1 value as argument, beside to the others arguments:

replace :
Image(tex01,372,280)

with:
ImageWithAlpha(tex01,372,280,1)



You have 5 lines like that, the all of them must be replaced.

Ok, it's working now...
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

@ nespa: One more question, is it possible to intergrate an AI engine into Ninfa 3D and can you explain it to me??

I'm not going to ask you to explain it now, because I don't need it for now but I want to know whetter it's possible and if you want to help so I know wheter I can pm you when I need it ( when my game is almost finished )


Oh, and btw thanx for the screenshot of that impreza_shaderGLSL
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

wahagn wrote:One more question, is it possible to intergrate an AI engine into Ninfa 3D and can you explain it to me??
AI is a very delicate system, there is no one-solution-fits-all AI system, and you shouldn't ask people managing libraries to write features that are specific to your needs

Implementing path-finding algorithms is possible, but again there are different pathfinding algorithms suited for different situations, an algorithm suited for a dungeon wouldn't work on vast and open scenes for example

Pick up some books, read some tutorials, find out what it is that you need in your game (just saying I need AI is not enough) and write it yourself
A game framework/engine should not contain game-specific elements, only the tools to build these
wahagn
Posts: 186
Joined: Sat Dec 06, 2008 5:11 pm
Location: Zundert (Netherlands)

Post by wahagn »

Radikalizm wrote:
wahagn wrote:One more question, is it possible to intergrate an AI engine into Ninfa 3D and can you explain it to me??
AI is a very delicate system, there is no one-solution-fits-all AI system, and you shouldn't ask people managing libraries to write features that are specific to your needs

Implementing path-finding algorithms is possible, but again there are different pathfinding algorithms suited for different situations, an algorithm suited for a dungeon wouldn't work on vast and open scenes for example

Pick up some books, read some tutorials, find out what it is that you need in your game (just saying I need AI is not enough) and write it yourself
A game framework/engine should not contain game-specific elements, only the tools to build these
OK, but do you actually think that I need an AI engine to intergrate in Ninfa or do you think that just searching some tutorials and making some algorithms would be enough, for the type of game I want to make: mini-GTA ??
“Any code of your own that you haven’t looked at for six or more months might as well have been written by someone else.”
(Eagleson’s Law)
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Post by serengeor »

wahagn wrote:@ nespa: One more question, is it possible to intergrate an AI engine into Ninfa 3D and can you explain it to me??

I'm not going to ask you to explain it now, because I don't need it for now but I want to know whetter it's possible and if you want to help so I know wheter I can pm you when I need it ( when my game is almost finished )


Oh, and btw thanx for the screenshot of that impreza_shaderGLSL
You still haven't prooven yourself I guess, come on stop asking code and do something yourself, maybe if you make it good it will be added to the engine it self, but as Radikalizm said there's no solution that would fit every game type. Do something on your own, thats the only way you can learn, else you'll just end up with code pile that eventually stop working/compiling because you won't really know how it works and how can it be fixed.

And if your going for that big game(Oh yes you'll mark my words when you won't be able to maintain your code), you have to know things like this, or know at least how to search for information and how to apply the information to your own problem.
Last edited by serengeor on Wed Mar 02, 2011 5:27 pm, edited 1 time in total.
Working on game: Marrbles (Currently stopped).
Post Reply