Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

its work after #38

Open
amarkumarprajapati opened this issue Aug 9, 2023 · 19 comments
Open

its work after #38

amarkumarprajapati opened this issue Aug 9, 2023 · 19 comments

Comments

@amarkumarprajapati
Copy link

amarkumarprajapati commented Aug 9, 2023

The issue was resolved after removing
remove -
''

Screenshot 2023-08-09 152644

Screenshot 2023-08-09 152724
act-three/drei"
Screenshot 2023-08-09 152817

@ajinkyap12
Copy link

Does your image is display in the editor which u are using because my editor gives error
Screenshot (49)

@amarkumarprajapati
Copy link
Author

yes because glb not supported by visual code
image

@ajinkyap12
Copy link

In which editor u are doing your project

@amarkumarprajapati
Copy link
Author

amarkumarprajapati commented Aug 11, 2023

vs code theme - jellyfish

@ajinkyap12
Copy link

I dont want the theme name I want Editor Name in which u have run the program

@amarkumarprajapati
Copy link
Author

ok visual studio code

@ajinkyap12
Copy link

Then how to render the image

@amarkumarprajapati
Copy link
Author

Screenshot 2023-08-14 114005
Screenshot 2023-08-14 114527
Screenshot 2023-08-14 113916
Screenshot 2023-08-14 113936

@ajinkyap12
Copy link

Can u help me what is wrong in this ..my background is not working and shirt color also

Screenshot (55)

@amarkumarprajapati
Copy link
Author

sure let me check

@amarkumarprajapati
Copy link
Author

in store-index.js '

import { proxy } from 'valtio';

const state = proxy({
intro: true,
color: 'rgb(167,0,3)',
isLogoTexture: true,
isFullTexture: false,
logoDecal: './threejs.png',
fullDecal: './threejs.png',
});

export default state;

@ajinkyap12
Copy link

Screenshot (56)

@amarkumarprajapati
Copy link
Author

amarkumarprajapati commented Aug 14, 2023

go to Backdrop.jsx

<RandomizedLight
amount={2}
radius={9}
intensity={0.55}
ambient={0.25}
position={[5, 5, -10]}
/>
<RandomizedLight
amount={4}
radius={5}
intensity={0.25}
ambient={0.55}
position={[-5, 5, -9]}
/>

adjsut- intensity={0.95}

@ajinkyap12
Copy link

It is working fine know..i have increased the body intensity .. one more thing what about the color..

And Thank you for the help

Screenshot (57)

@amarkumarprajapati
Copy link
Author

welcome

@ajinkyap12
Copy link

But i want to fix the shirt of the color also, otherwise its no problem i will also try to do this

@amarkumarprajapati
Copy link
Author

I will try it

@jayjay2397
Copy link

Can u help me what is wrong in this ..my background is not working and shirt color also

Screenshot (55)

HI, I have these presets for the backdrop.jsx

hopefully they help it fixed the shirt and back drop issue as well.

`const Backdrop = () => {
const shadows = useRef();

return (
<AccumulativeShadows
ref={shadows}
temporal={easing.expoInOut}
frames={60}
alphaTest={0.25}
scale={5}
rotation={[Math.PI / 2, 0, 0]}
position={[0, 0, -0.14]}

>
  <RandomizedLight 
    amount={4}
    radius={15}
    intensity={0.55}
    ambient={0.25}
    position={[10, 10, -15]}
  />
  <RandomizedLight 
    amount={4}
    radius={5}
    intensity={0.25}
    ambient={0.55}
    position={[-5, 5, -9]}
  />
</AccumulativeShadows>

)
}`

@amarkumarprajapati
Copy link
Author

import React, { useRef } from 'react'
import { easing } from 'maath'
import { useFrame } from '@react-three/fiber'
import { AccumulativeShadows, RandomizedLight } from '@react-three/drei';

const Backdrop = () => {
const shadows = useRef();

return (
<AccumulativeShadows
ref={shadows}
temporal
frames={60}
alphaTest={0.85}
scae={10}
rotation={[Math.PI / 2, 0, 0]}
position={[0, 0, -0.14]}
>
<RandomizedLight
amount={2}
radius={9}
intensity={0.75}
ambient={0.25}
position={[5, 5, -10]}
/>
<RandomizedLight
amount={4}
radius={5}
intensity={0.25}
ambient={0.55}
position={[-5, 5, -9]}
/>

)
}

export default Backdrop
use this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants