Skip to content

Commit

Permalink
created the apk file, made also some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
onurcerli committed Oct 21, 2024
1 parent 2be2be5 commit 87f2a16
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 41 deletions.
Binary file added 3Design/mobile/3Design.apk
Binary file not shown.
8 changes: 2 additions & 6 deletions 3Design/mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"foregroundImage": "./app/assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"permissions": [
"INTERNET"
],
"permissions": ["INTERNET"],
"package": "com.onurcerli.ThreeDesign"
},
"web": {
Expand All @@ -42,8 +40,6 @@
"projectId": "b7f9f8c1-944b-488c-b640-b9c0d50edefd"
}
},
"assetBundlePatterns": [
"app/assets/*"
]
"assetBundlePatterns": ["app/assets/*"]
}
}
32 changes: 16 additions & 16 deletions 3Design/mobile/app/components/ObjectViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ObjViewer = ({ objFilePath }) => {
await asset.downloadAsync();

loader.load(
asset.uri,
asset.localUri,
(object) => {
object.traverse((child) => {
if (child.isMesh) {
Expand Down Expand Up @@ -111,21 +111,21 @@ const ObjViewer = ({ objFilePath }) => {

return (
<View style={{ height: 300 }}>
<PanGestureHandler onGestureEvent={handlePan}>
<PinchGestureHandler onGestureEvent={handlePinch}>
<GLView
style={{
height: 300,
borderColor: '#000',
borderWidth: 2,
borderRadius: 10,
}}
onContextCreate={onContextCreate}
enableDepth={true}
enableStencil={true}
/>
</PinchGestureHandler>
</PanGestureHandler>
<PanGestureHandler onGestureEvent={handlePan}>
<PinchGestureHandler onGestureEvent={handlePinch}>
<GLView
style={{
height: 300,
borderColor: '#000',
borderWidth: 2,
borderRadius: 10,
}}
onContextCreate={onContextCreate}
enableDepth={true}
enableStencil={true}
/>
</PinchGestureHandler>
</PanGestureHandler>
</View>
);
};
Expand Down
7 changes: 3 additions & 4 deletions 3Design/mobile/app/navigation/TabNavigator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { useContext } from 'react';
import { StyleSheet, View, Platform, StatusBar } from 'react-native';
import { StyleSheet, Platform, StatusBar, SafeAreaView } from 'react-native';
import Ionicons from '@expo/vector-icons/Ionicons';

import { Colors } from '../constants/Colors';
Expand All @@ -15,7 +15,7 @@ const Tab = createBottomTabNavigator();
export default function TabNavigator({ navigation, route }) {
const { setPostScreen } = useContext(PostScreenContext);
return (
<View style={styles.body}>
<SafeAreaView style={styles.body}>
<Tab.Navigator
screenOptions={{
headerShown: false,
Expand Down Expand Up @@ -116,13 +116,12 @@ export default function TabNavigator({ navigation, route }) {
}}
/>
</Tab.Navigator>
</View>
</SafeAreaView>
);
}

const styles = StyleSheet.create({
body: {
paddingTop: Platform.OS === 'android' ? StatusBar.currentHeight : 0,
flex: 1,
backgroundColor: Colors.light,
},
Expand Down
31 changes: 16 additions & 15 deletions 3Design/mobile/app/screens/FeedScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,45 @@ import React, { useRef } from 'react';
import { View, FlatList, StyleSheet } from 'react-native';
import { Colors } from '../constants/Colors';
import Post from '../components/Post';
import {GestureHandlerRootView} from "react-native-gesture-handler";
import { GestureHandlerRootView } from 'react-native-gesture-handler';

const mockPosts = [
{
id: '1',
title: 'HAMBURGER 😋',
content: 'Who doesn\'t love a good hamburger? I made this 3D model of a hamburger for a college assigment, and I' +
' was so proud of it that I wanted to share it here. I know that this isn\'t much, but I\'m still a beginner at' +
content:
"Who doesn't love a good hamburger? I made this 3D model of a hamburger for a college assigment, and I" +
" was so proud of it that I wanted to share it here. I know that this isn't much, but I'm still a beginner at" +
' this, so please go easy on me :)',
model: require('../assets/Hamburger.obj')
model: require('../assets/Hamburger.obj'),
},
{
id: '2',
title: 'Environment modeling for games',
content: 'Hi everyone!\n\nAs an experienced level designer that has worked in countless triple-A games, I have ' +
content:
'Hi everyone!\n\nAs an experienced level designer that has worked in countless triple-A games, I have ' +
'noticed that lately not enough attention is given to environment modeling in indie titles. That is why I ' +
'decided to prepare a tutorial/guide detailing what to pay attention to while designing your environment props.' +
'\n\nRead here: https://medium.com/environment-modeling-for-games-77672e86876b',
},
{
id: '3',
title: 'Detailed male human model',
content: 'I am developing an educational app focused on the human anatomy, mainly targeting med students. I found ' +
content:
'I am developing an educational app focused on the human anatomy, mainly targeting med students. I found ' +
'this male human model online, but it is lacking some crucial anatomical features. Can anybody revise it so it ' +
'is more anatomically accurate? Thanks!',
model: require('../assets/FinalBaseMesh.obj')
model: require('../assets/FinalBaseMesh.obj'),
},
{
id: '4',
title: 'Thoughts on 3D printing',
content: "I’ve recently embarked on a journey into the world of 3D printing, and it has been nothing short of exhilarating! After months of designing models in software like Blender and Tinkercad, I decided it was time to bring my digital creations into the physical world.\n\n" +
"One of the first challenges I faced was selecting the right 3D printer. With so many options on the market, I had to consider factors such as print quality, material compatibility, and budget. After thorough research, I settled on a resin printer for its ability to produce highly detailed prints. However, working with resin requires a different approach compared to filament-based printing, which has its own set of challenges.\n\n" +
"Once I started printing, I quickly realized that preparing the models for print is just as crucial as the design itself. I encountered issues like warping and failed prints due to improper supports. I spent time learning about the importance of orientation and support structures. Now, I always ensure that my models are properly oriented and have sufficient supports to avoid any mishaps during the printing process.\n\n" +
"Another hurdle was post-processing. After printing, cleaning and curing the models can be tedious. I experimented with different cleaning solutions and curing methods, which allowed me to achieve a smooth finish on my pieces. I also learned the importance of safety precautions when handling resin, such as wearing gloves and working in a well-ventilated area.\n\n" +
"I am thrilled with the results so far! Some of my favorite prints include intricate figurines and functional prototypes. I’ve also started sharing my experiences on social media, and the feedback has been overwhelmingly positive. I’d love to hear your thoughts on 3D printing. What challenges have you faced in your printing journey? Any tips you’d recommend for beginners?",

content:
'I’ve recently embarked on a journey into the world of 3D printing, and it has been nothing short of exhilarating! After months of designing models in software like Blender and Tinkercad, I decided it was time to bring my digital creations into the physical world.\n\n' +
'One of the first challenges I faced was selecting the right 3D printer. With so many options on the market, I had to consider factors such as print quality, material compatibility, and budget. After thorough research, I settled on a resin printer for its ability to produce highly detailed prints. However, working with resin requires a different approach compared to filament-based printing, which has its own set of challenges.\n\n' +
'Once I started printing, I quickly realized that preparing the models for print is just as crucial as the design itself. I encountered issues like warping and failed prints due to improper supports. I spent time learning about the importance of orientation and support structures. Now, I always ensure that my models are properly oriented and have sufficient supports to avoid any mishaps during the printing process.\n\n' +
'Another hurdle was post-processing. After printing, cleaning and curing the models can be tedious. I experimented with different cleaning solutions and curing methods, which allowed me to achieve a smooth finish on my pieces. I also learned the importance of safety precautions when handling resin, such as wearing gloves and working in a well-ventilated area.\n\n' +
'I am thrilled with the results so far! Some of my favorite prints include intricate figurines and functional prototypes. I’ve also started sharing my experiences on social media, and the feedback has been overwhelmingly positive. I’d love to hear your thoughts on 3D printing. What challenges have you faced in your printing journey? Any tips you’d recommend for beginners?',
},
];

Expand All @@ -50,7 +53,6 @@ export default function FeedScreen() {
}
};


return (
<View style={styles.body}>
<GestureHandlerRootView>
Expand Down Expand Up @@ -78,6 +80,5 @@ const styles = StyleSheet.create({
flex: 1,
display: 'flex',
backgroundColor: Colors.light,
padding: '3%',
},
});

0 comments on commit 87f2a16

Please sign in to comment.