Forum Replies Created
-
AuthorPosts
-
I’m not upto speed on diffuse and specular would this basically be just putting black textures in the PBR directory for the specular and diffuse files?
Thanks cocon im just looking at unlit textures but to be honest Shaders arent my thing, im used to EntityFX and TextureFX but now it all seems to be shaders for everything :/
Monkey12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879Shader "Somian/Unlit/Transparent" {Properties {_Color ("Main Color (A=Opacity)", Color) = (1,1,1,1)_MainTex ("Base (A=Opacity)", 2D) = ""}Category {Tags {"Queue"="Transparent" "IgnoreProjector"="True"}ZWrite OffBlend SrcAlpha OneMinusSrcAlphaSubShader {Pass {GLSLPROGRAMvarying mediump vec2 uv;#ifdef VERTEXuniform mediump vec4 _MainTex_ST;void main() {gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;uv = gl_MultiTexCoord0.xy * _MainTex_ST.xy + _MainTex_ST.zw;}#endif#ifdef FRAGMENTuniform lowp sampler2D _MainTex;uniform lowp vec4 _Color;void main() {gl_FragColor = texture2D(_MainTex, uv) * _Color;}#endifENDGLSL}}SubShader {Pass {SetTexture[_MainTex] {Combine texture * constant ConstantColor[_Color]}}}}}probably nearer to the shader, also borrowed from the Unity forum
Nah importing Assets/Models/ at the top.
It was because I didn’t set the texture in a directory, MonkeyX2 requires ALL PbrTextures to be a directory containing the image files renames color.png etc.
All I have to work out now is how to make a texture fulbright and I’m away
anyone have an example of texturing a entity I have trawled through the bananas and examples but couldn’t find anything?
ah thought I saw a metallic one on the title screen
is there a place to download your powered by MonkeyX2 logo which is in Revengestar?
Well I now have the sun sprites in the game for the locators and I’m adding the rest of the backing items, once they are in I will post some screenshots for everyone to see.
It’s nice coding in a IDE again rather than a drag and place system which didn’t feel like coding. MonkeyX2 actually feels like programming in all sense of the word which is one thing I wanted
Is there a decent “Made in MonkeyX2” logo for projects made in it?
Digging into it all now
weirdly enough I didn’t see that in the bananas, will have a look
Thanks nerobot
Well now we are knee deep in 3d world I have managed to cobble together the locator system that will allow me to work out where the player is within a system this will in turn allow me to place the background stuff to make it all look pretty ;).
Im now wading into the backing data that will be the final part before I can post a screenie of how it will look after all of it is completed, obviously I will still need to put the ‘local’ stuff in but that will be the next step.
After changing to ReadLine I now parse the files perfectly, what I get is:
[/crayon]Monkey12345678910111213141516171819202122232425262728293031323334[crayon-5cb9b35c4d88b498321727 inline="true" ]Loading Galaxy...Loading galaxy...File exists:<DIR>assets/GalaxyMap.txtIt does with a size of 1556Galaxy mapping version:0.1Loading Racial data...File exists:<DIR>assets/RaceData.txtIt does with a size of 10316Loading Aradis data...Loading.. Aradis.txtFile exists: Aradis.txtIt does with a size of 2982Aradis is now at X:0 Y:0 Z:0Aradis 1 is now at X:-16344 Y:0 Z:-14387Aradis 1a is now at X:-16344 Y:0 Z:0Akaron Jumpgate is now at X:-344000 Y:6000 Z:0Unknown wormhole is now at X:312000 Y:52000 Z:0Ithakan research station is now at X:86000 Y:-316000 Z:0Freeport 1 is now at X:-284000 Y:-284000 Z:0Aradis research institute is now at X:-16344 Y:0 Z:0Hayclon nebula is now at X:382000 Y:-8000 Z:0Hayclons demise is now at X:310000 Y:56000 Z:0Placing player...TSSCName:AradisTSSCName:Aradis 1TSSCName:Aradis 1aTSSCName:Akaron JumpgateTSSCName:Unknown wormholeTSSCName:Ithakan research stationTSSCName:Freeport 1Found item:Freeport 1CompleteBasically all its doing at present is loading the galaxy data into the system this will allow me to see all the predefined star systems and where they actually are on the galaxy map. After that it loads in all the current racial data for the race files that are in the game, at present there are not tons of them but I have only just begun
Finally it loads in Aradis this then places the player at Freeport 1 in the system which is where the game will begin.
Now its all done I can now move to actually getting the star system together including the backing sections of the local system so we can actually navigate around it.
Thanks to DruggedBunny and Hezkore for the RadianToDegree function AND the working one this has saved me some work and has not been put into Ultim.Math for future use.Now onto getting the background complete and see what we can see
TomToad thanks for that
ah I see I thought it was like MX1 and max etc where it read a line of characters and stopped at the end of line character. Thanks for the parsing code you put up and he information on it
The #13’s are there but previous versions stopped at that point which is why I wondered if something was amiss.
I would have made the variable private so monkey cannot call it directly and only the function is parsed by the IDE. Then just a error like “Count cannot be accessed like this”
-
AuthorPosts