Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

rocketmark

7
Posts
2
Following
A member registered 12 days ago

Recent community posts

(1 edit)

On opening 3DObjectFragLight after Construct 3 update to r424 stable, I got the following notification: 

  • Plugin 3D Object (Mikal_3DObject) by Mikal uses the legacy SDK v1 which is deprecated. A future update to Construct will remove support for SDK v1 addons. Check if an update using SDK v2 is available for this plugin, or contact the plugin developer for support.
  • Behavior Rotate 3D (mikal_rotate_shape) by mikal uses the legacy SDK v1 which is deprecated. A future update to Construct will remove support for SDK v1 addons. Check if an update using SDK v2 is available for this behavior, or contact the behavior developer for support.

I can't find where the code samples that FoozleCC refers to are located. 

www.youtube.com/watch?v=p02bz6jax8Y&t=1105s 

Thank you very much. Unfortunately the project was saved in r423 beta and I am using r416.2 stable. I see it running in the browser as intended, but can't figure out how to update my desktop version to r423 beta - preference is to stay using stable. 3D Oject addon is installed.  

Enabled WebGPU in previous release mikal_frag_light-8-2.8.0 - 

Light flashes on for a moment, then screen goes black. 

Error log - 

instance.js:241 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'bindBuffer')
    at Object3DInstance.Tick (instance.js:241:25) etc

6instance.js:241 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'bindBuffer')
    at Object3DInstance.Tick (instance.js:241:25)
    at _isTicking._tickFunc._tickFunc (sdkInstanceBase.js:1:3025) etc

gltfModel.js:130 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'currentShader')
    at GltfModelTop.setVertexShaderModelRotate (gltfModel.js:130:38)
    at GltfModelTop.render (gltfModel.js:245:12) etc 

It seems to still wan to use main.js as when I delete it, there isn't even a flash of light. Error log after deleting main.js - 

domSide.js:16 Uncaught (in promise) GPUPipelineError: The fragment input at location 2 doesn't have a corresponding vertex output.
 at ValidateInterStageMatching (..\..\third_party\dawn\src\dawn\native\RenderPipeline.cpp:781) 

I cant see how to check that the renderer is webgl2 in the project setting

(2 edits)

Hello,

Watching FoozleCC, he shows sample code to copy and use. I have no idea where this code is – which sample is he showing/using? 
https://www.youtube.com/watch?v=p02bz6jax8Y&t=1105s

Construct 3 r416.2 stable

Installed addons: Frag Light 2.8.0, SSAO 1.6, 3DObject, Rotate 3D  

Preview 3DObjectFragLight - Scene is completely black.

F12 – I now see I have an error: 

main.js:98 Uncaught TypeError: Cannot set properties of undefined (setting 'GetDefaultVertexShaderSource')   at main.js:98:57

(anonymous) @ main.js:98Understand this errorAI

c3runtime.js:280 Uncaught (in promise) Error: Error compiling fragment shader: ERROR: 0:11: 'pos' : redefinition

    at C3.Gfx.WebGLShaderProgram.Compile (c3runtime.js:280:1243)

    at async C3.Gfx.WebGLShaderProgram.Create (c3runtime.js:280:1904)

    at async C3.Gfx.WebGLRenderer.CreateShaderProgram (c3runtime.js:460:9318)

    at async Promise.all (3DObjectFragLight-8/index 1)

    at async C3.CanvasManager._InitWebGL (c3runtime.js:1190:6728)

    at async C3.CanvasManager._InitRenderer (c3runtime.js:1190:7050)

    at async C3.CanvasManager.CreateCanvas (c3runtime.js:1190:4819)

    at async C3.Runtime._InitialiseCanvas (c3runtime.js:1195:18300)

    at async C3.Runtime.Init (c3runtime.js:1195:10955)

    at async Q._InitDOM (main.js:26:12442)

Same error after publishing and running in chrome using IIS.

 

 

3DObjectVertexColor –

Project exported – running in Chrome.. Scene is completely black.

Error log: 

main.js:99 Uncaught TypeError: Cannot set properties of undefined (setting 'GetDefaultVertexShaderSource')   at main.js:99:57Understand this errorAI

c3runtime.js:280 Uncaught (in promise) Error: Error compiling fragment shader: ERROR: 0:11: 'pos' : redefinition

ERROR: 0:12: 'vColor' : redefinition

    at C3.Gfx.WebGLShaderProgram.Compile (c3runtime.js:280:1243)

    at async C3.Gfx.WebGLShaderProgram.Create (c3runtime.js:280:1904)

    at async C3.Gfx.WebGLRenderer.CreateShaderProgram (c3runtime.js:460:9318)

    at async Promise.all (3DObjectVertexColor/index 0)

    at async C3.CanvasManager._InitWebGL (c3runtime.js:1190:6728)

    at async C3.CanvasManager._InitRenderer (c3runtime.js:1190:7050)

    at async C3.CanvasManager.CreateCanvas (c3runtime.js:1190:4819)

    at async C3.Runtime._InitialiseCanvas (c3runtime.js:1195:18300)

    at async C3.Runtime.Init (c3runtime.js:1195:10955)

    at async Q._InitDOM (main.js:26:12442)

I've installed addon mikal_frag_light-8-2.8.0.c3addon

Open example file 3DObjectFragLight-8.
Preview layout - black screen - can't see anything. 

What now? How do you turn on a light? 

I can't find where the code samples that FoozleCC refers to are located. 

(2 edits)

It would be great if only the latest versions on one download page and older versions on a different download page. 
The documentation seems outdated.  It says This effect requires the main.js file from the example project to be included - yet in the comments here it says it is not required.. which is it? Also - there is no documentation about the different light types - what does each one do?