Code Monkey home page Code Monkey logo

market's People

Contributors

alaricbaraou avatar arthurdenner avatar drcmda avatar gsimone avatar gusted avatar imgbotapp avatar matthewbcool avatar njm222 avatar saravieira avatar schwarzsky avatar vaneenige avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

market's Issues

Let's add a Materials category

Hey guys! Really happy to see this repo spring to life!

When I spoke with @drcmda a couple of weeks ago we talked about some way of sharing pre-made materials for prototyping. Things like metals, bricks, concrete, wood planks, and so on, all optimized for Three.js.

There are two ways materials are usually shared - either as a texture pack, or as a complete surface. The texture pack is easy, you just put the maps in a zip file (you also have to get/create the textures, of ccourse).

However, this doesn't capture other surface settings like refraction ratio, color, transparency, normal scale, etc.

I like what you're doing with the JSX code snippet beside the model download, we could do the same for the materials:

const [tex, roughnessTex, normalTex] = useLoader(THREE.TextureLoader, [texURL, roughnessTexURL, normalTexURL])

<mesh
	  <boxGeometry attach="geometry" args={[0.6, 0.6, 0.6]} />
	  <meshStandardMaterial attach="material" 
		    map={tex}
		    roughnessMap={roughnessTex}
		    normalMap={normalTex}
		    transparent 
		    opacity="0.25"
		    // ... etc.
	  />
/>

This does tie everything in to R3F quite strongly though. What about adding plain JS beside the JSX?

P.S. I know that donut! ๐Ÿ˜†
https://market-phi.vercel.app/model/donut

Preset dropdown has white text on white background

I wasn't able to quickly find it in the code base -- but if it isn't resolved by tomorrow I'll submit a PR. However, the preset menu color is the same as the background color. Images below. I would recommend color: #212224; or something similar to the menu color.

Original:
image

Recommendation:
image

UserMenu hidden by other elements

The UserMenu is hidden by other elements, it's not a problem until you are into "request an asset page" and the logout button is hidden.

I think is a z-index fix, let me know if I can contribute, at least with these
small issues

ex

Add option to copy JSX scene graph with types

An option to include types when using the "Copy JSX Scene Graph" feature for models would be super handy!

Right now I'm just downloading the model and getting a scene graph with types from https://gltf.pmnd.rs/.

It looks like an extra types parameter could be optionally passed to @react-three/gltfjsx if say different button was clicked?

const createCode = () => {

I suppose an extension to this feature request could also be optional types for the other features too - but I'm particularly keen for copying JSX with types.

If there's interest for this, I'd also be happy to try contributing ๐Ÿ™‚

Only black canvas

I tried the various downloads for this model , Three.js works fine but the React-three-fiber starter projects renders black without model and gives me an console error 'GLTFLoader.js:149 RangeError: Invalid typed array length: 4 at new Uint8Array () at GLTFLoader.parse (GLTFLoader.js:254) at Object.onLoad (GLTFLoader.js:169) at XMLHttpRequest. (three.module.js:34742)'

Status is 200 for the model but as I said it only renders a black window, how can this be resolved?

Find out why prettier does not work

when running prettier I always get an issue:

โฏ yarn prettier
yarn run v1.22.5
$ prettier --list-different '**/*.{js,jsx,md}'
README.md
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Very useful yeah

Licence ?

Hello
I would ask what is the licence of this repository?

Thanks you

Push Info Component to the top

At the moment the sidebar in the individual assets feels kinda buggy because leva only shows up a couple of seconds after

Pushing it to the top would be a great addition
Screenshot_2021-05-20_at_10 53 50

A page that is already doing something similar is the request page, the title is inserted there and not in the layout

Add a matcaps category, maybe?

Matcaps are great for prototyping and I've seen them in a number of production projects too.

There are loads of matcaps here:
https://github.com/nidorx/matcaps

According to the readme on that repo, the matcaps were gathered from various sources and are not the work of the repo owner. So it should be fine for us to co-host them here if we like.

/favorites error

The /favorites page is down (500)

and when running it locally it keeps redirecting to root

Considering providing .glb download rather than .gltf

Hi! Quick suggestion. Currently downloads use the .gltf extension with binary resources embedded as Data URIs. This adds 20-30% to the size of that binary data, and increases loader parsing time, compared to a binary .glb or to a .gltf with its binary resources in separate files. I'd recommend providing a .glb instead, or a ZIP containing .gltf and other files.

I18n

Hi @SaraVieira , it would be interesting to also have the possibility of having the multilingual site.
Example: Spanish, Italian, German etc.

Add comments

Should only be able to leave a comment when logged in

Clean up all info components

Right now we have three different info components:

  • src/components/MaterialInfo.js
  • src/components/ModelInfo.js
  • src/components/HDRIInfo.js

Even though all of these are basically the same, this could easily be only one component that showed the buttons by the type of asset it is

How to use sign in in local?

I changed the supabase key to my own and added the profiles to the supabase table, but an error popped up and it was not resolved.
I want to implement login and model upload in the local environment, is there any information I can refer to?

Dark mode

Hi @SaraVieira , it would be interesting to also have the possibility to use the site in a dark mode version.

NPM installable assets

Can the assets on the market be installable straight from npm?
I think that will make them more accessible instead of downloading them and moving them to the project folder.

I was thinking something like @fontsource

Add starter for HDRIS

React three fiber starter project can use:

<Environment path="" files={path to hdri} background={true} />

Files that generate code are in src/helpers/code

Some of the vehicles have reversed faces

I couldn't find a "report issue" or similar on the new market site (which is amazing btw) so I'm posting here instead. Do let me know if I should report this somewhere else.

Description

  • Some vehicles have inside-out wheels and other faces (eg. sides of fire truck)

Expectation

  • No faces should be inside out on vehicles

Specs

  • Windows 10
  • Chrome 90.0.4430.212 (Official Build) (64-bit)

Examples with issue

Firetruck

image

Delivery Truck

image

Examples without issue

  • Some vehicles don't have this issue, though use similar / identical wheels

Police Car

image

SUV

image

Bad URLs in copied JSX Scene Graph

The URL produced after clicking "Copy JSX Scene Graph" on a model contains a leading slash, which causes an error if you paste it into your project.

E.g. the scene graph copied for the avacado is:

/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
*/

import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'

export default function Model(props) {
  const group = useRef()
  const { nodes, materials } = useGLTF(
    '/https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/avocado/model.gltf'
  )
  return (
    <group ref={group} {...props} dispose={null}>
      <mesh
        geometry={nodes.avocado.geometry}
        material={materials.brownDarkest}
        scale={[0.53, 0.53, 0.53]}
      />
    </group>
  )
}

useGLTF.preload(
  '/https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/avocado/model.gltf'
)

By contrast, the URL produced when clicking "Copy Primitive Import" is correct.

Thumbnails flicker rapidly when mousing over labels

Running on Firefox, Windows, I'm noticing that the hover transition is played rapidly while mousing over labels.

This stops when no longer mousing over a thumbnail and can persist while the cursor is still.

hover-state

Able to drag Leva window under text

It can't be dragged back again as the text eats the click event. Is it possible to disable dragging on Leva entirely?

Screen.Recording.2021-05-17.at.10.38.54.mov

Models that are not displayed

Hi @SaraVieira ,

I noticed that there are more models than indicated on the main page.
For example this is the latest model shown in the home: https://market.pmnd.rs/model/wood-bucket

But on the page itself, going to see the next one, one is indicated, by clicking on next, the following message appears: An unexpected error has occurred.

But reloading the page loads a template.

From here on, the same thing happens with the following models.

Unable to request a new asset

Description

  • If I try to request a new asset nothing happens
  • There is no network request performed in the network panel after clicking request button

Steps to reproduce

  • Click "Request an Asset"
  • Enter details in 3 form fields
  • Click "Request"
  • Nothing happens

Expectation

  • Clicking "Request" submits and updates page with new request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.